Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CompMod / System / ComponentModel / CompModSwitches.cs / 1 / 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
- ProfileParameter.cs
- DependencyPropertyDescriptor.cs
- DirectionalLight.cs
- DataViewSetting.cs
- PageCache.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- MemoryFailPoint.cs
- DataTablePropertyDescriptor.cs
- PageCopyCount.cs
- SystemParameters.cs
- CodePageEncoding.cs
- DataObjectSettingDataEventArgs.cs
- GroupItemAutomationPeer.cs
- PageWrapper.cs
- NullToBooleanConverter.cs
- TreeViewImageIndexConverter.cs
- GlobalAllocSafeHandle.cs
- TriState.cs
- MexHttpBindingCollectionElement.cs
- AdornerDecorator.cs
- SqlBooleanMismatchVisitor.cs
- _ShellExpression.cs
- FixUpCollection.cs
- GlobalEventManager.cs
- ArcSegment.cs
- Int32Rect.cs
- VoiceInfo.cs
- HttpRawResponse.cs
- SymbolMethod.cs
- IssuanceLicense.cs
- HandledMouseEvent.cs
- DesignerTextBoxAdapter.cs
- StringComparer.cs
- NativeMethods.cs
- SendMailErrorEventArgs.cs
- MenuCommand.cs
- NodeLabelEditEvent.cs
- PipeStream.cs
- ObjectQuery_EntitySqlExtensions.cs
- SchemaNamespaceManager.cs
- SectionRecord.cs
- DocumentViewer.cs
- CollectionView.cs
- Funcletizer.cs
- HashCodeCombiner.cs
- DataComponentMethodGenerator.cs
- TableDetailsRow.cs
- WeakReferenceKey.cs
- GreenMethods.cs
- IDictionary.cs
- StrongName.cs
- _Semaphore.cs
- AssemblyBuilder.cs
- Debugger.cs
- FatalException.cs
- SymmetricSecurityProtocolFactory.cs
- ExtendedProperty.cs
- UpDownEvent.cs
- XPathDocumentBuilder.cs
- ServiceEndpointElementCollection.cs
- HitTestResult.cs
- GeneralTransform3DCollection.cs
- _NestedSingleAsyncResult.cs
- AutoGeneratedField.cs
- GridToolTip.cs
- ListGeneralPage.cs
- RbTree.cs
- BrowserCapabilitiesFactoryBase.cs
- UnmanagedMemoryStream.cs
- Attributes.cs
- Psha1DerivedKeyGenerator.cs
- _ShellExpression.cs
- TextBoxLine.cs
- TemplateGroupCollection.cs
- UniqueEventHelper.cs
- SetIterators.cs
- XmlChildEnumerator.cs
- CatalogPart.cs
- _DynamicWinsockMethods.cs
- CrossContextChannel.cs
- EndpointInstanceProvider.cs
- CacheOutputQuery.cs
- ReadOnlyDataSource.cs
- SigningCredentials.cs
- Gdiplus.cs
- ADMembershipProvider.cs
- PageOutputQuality.cs
- AnnotationAdorner.cs
- LabelLiteral.cs
- CompiledRegexRunner.cs
- UnknownBitmapEncoder.cs
- RtfControls.cs
- DPCustomTypeDescriptor.cs
- ConvertBinder.cs
- ReaderWriterLock.cs
- StrokeNodeEnumerator.cs
- WpfWebRequestHelper.cs
- PrimitiveXmlSerializers.cs
- Merger.cs
- DbParameterHelper.cs