Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / CompModSwitches.cs / 1305376 / CompModSwitches.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.ComponentModel { using System.Configuration.Assemblies; using System.Diagnostics; using System.Runtime.InteropServices; using System.Runtime.Remoting; using System.Runtime.Serialization.Formatters; using System.Security.Permissions; using System.Threading; ///[HostProtection(SharedState = true)] internal static class CompModSwitches { private static BooleanSwitch commonDesignerServices; private static TraceSwitch eventLog; public static BooleanSwitch CommonDesignerServices { get { if (commonDesignerServices == null) { commonDesignerServices = new BooleanSwitch("CommonDesignerServices", "Assert if any common designer service is not found."); } return commonDesignerServices; } } public static TraceSwitch EventLog { get { if (eventLog == null) { eventLog = new TraceSwitch("EventLog", "Enable tracing for the EventLog component."); } return eventLog; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.ComponentModel { using System.Configuration.Assemblies; using System.Diagnostics; using System.Runtime.InteropServices; using System.Runtime.Remoting; using System.Runtime.Serialization.Formatters; using System.Security.Permissions; using System.Threading; ///[HostProtection(SharedState = true)] internal static class CompModSwitches { private static BooleanSwitch commonDesignerServices; private static TraceSwitch eventLog; public static BooleanSwitch CommonDesignerServices { get { if (commonDesignerServices == null) { commonDesignerServices = new BooleanSwitch("CommonDesignerServices", "Assert if any common designer service is not found."); } return commonDesignerServices; } } public static TraceSwitch EventLog { get { if (eventLog == null) { eventLog = new TraceSwitch("EventLog", "Enable tracing for the EventLog component."); } return eventLog; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Label.cs
- ListBoxItemAutomationPeer.cs
- DataGridViewRowPrePaintEventArgs.cs
- HtmlMeta.cs
- SequentialUshortCollection.cs
- Propagator.ExtentPlaceholderCreator.cs
- RegexCompiler.cs
- DataGridPagerStyle.cs
- XmlWhitespace.cs
- ComponentResourceManager.cs
- SQLByte.cs
- Publisher.cs
- XmlKeywords.cs
- PersistChildrenAttribute.cs
- CommandLineParser.cs
- DataTemplate.cs
- InputScopeAttribute.cs
- DeferredElementTreeState.cs
- MimeTypePropertyAttribute.cs
- StringUtil.cs
- AutomationAttributeInfo.cs
- HttpGetClientProtocol.cs
- CommandBindingCollection.cs
- ObjectListFieldCollection.cs
- IndentedTextWriter.cs
- TextTreeTextBlock.cs
- MimeTextImporter.cs
- CorrelationTokenTypeConvertor.cs
- SettingsPropertyValueCollection.cs
- MobileTemplatedControlDesigner.cs
- QuadTree.cs
- OdbcPermission.cs
- FusionWrap.cs
- Typeface.cs
- WSFederationHttpBinding.cs
- Literal.cs
- ToolboxItemCollection.cs
- IntegerCollectionEditor.cs
- SafeFileMappingHandle.cs
- CompiledXpathExpr.cs
- Evaluator.cs
- Reference.cs
- ConfigsHelper.cs
- ResourceCollectionInfo.cs
- CheckoutException.cs
- CultureSpecificStringDictionary.cs
- ProcessStartInfo.cs
- SerializationTrace.cs
- CheckBoxPopupAdapter.cs
- WebControl.cs
- regiisutil.cs
- WebPartEditVerb.cs
- X509Certificate2Collection.cs
- Bezier.cs
- XPathArrayIterator.cs
- CodeIdentifiers.cs
- DynamicQueryableWrapper.cs
- MissingSatelliteAssemblyException.cs
- RSAOAEPKeyExchangeDeformatter.cs
- CqlBlock.cs
- _SafeNetHandles.cs
- AnchoredBlock.cs
- _SslStream.cs
- Byte.cs
- ModelItemDictionaryImpl.cs
- BinaryObjectInfo.cs
- precedingsibling.cs
- OdbcError.cs
- ErrorTableItemStyle.cs
- QuaternionValueSerializer.cs
- VectorCollection.cs
- SqlUdtInfo.cs
- EncodingDataItem.cs
- AsyncStreamReader.cs
- CreateUserWizardStep.cs
- XPathArrayIterator.cs
- FacetChecker.cs
- TextMarkerSource.cs
- BitmapEffectDrawing.cs
- XsltSettings.cs
- ParameterRefs.cs
- InitializationEventAttribute.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- HttpVersion.cs
- TextBlock.cs
- AliasedSlot.cs
- PeerContact.cs
- BeginEvent.cs
- SystemFonts.cs
- NetworkInformationException.cs
- ToolboxItemAttribute.cs
- SimpleBitVector32.cs
- FunctionParameter.cs
- VsPropertyGrid.cs
- DoubleLinkList.cs
- KeyedHashAlgorithm.cs
- ConstraintStruct.cs
- HttpRequestWrapper.cs
- IODescriptionAttribute.cs
- ExpressionWriter.cs