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
- Convert.cs
- FormView.cs
- EdmToObjectNamespaceMap.cs
- DynamicRendererThreadManager.cs
- OdbcConnectionFactory.cs
- MemoryFailPoint.cs
- DataObjectAttribute.cs
- SamlAuthorityBinding.cs
- SectionRecord.cs
- SoapIncludeAttribute.cs
- EventMap.cs
- HostingEnvironmentException.cs
- CornerRadius.cs
- LocalizationComments.cs
- mansign.cs
- MetadataItemEmitter.cs
- CodeObject.cs
- TextSelection.cs
- AuthenticationModulesSection.cs
- DecoratedNameAttribute.cs
- StringToken.cs
- ScaleTransform3D.cs
- PointLight.cs
- SubpageParagraph.cs
- Matrix3DConverter.cs
- ConnectionStringsExpressionBuilder.cs
- MonitorWrapper.cs
- StylusShape.cs
- FormsAuthenticationConfiguration.cs
- TracePayload.cs
- Rect3DValueSerializer.cs
- OdbcReferenceCollection.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- MasterPageBuildProvider.cs
- MetadataCache.cs
- SecurityRuntime.cs
- ServiceMetadataContractBehavior.cs
- _NestedSingleAsyncResult.cs
- PointF.cs
- TrackingLocation.cs
- _Semaphore.cs
- CodePageEncoding.cs
- ItemType.cs
- QueueProcessor.cs
- BitmapEffectGroup.cs
- XmlSchemaExternal.cs
- IriParsingElement.cs
- SafeNativeMethods.cs
- ProfessionalColors.cs
- GetLedgerEntryForRecipientRequest.cs
- BuildManager.cs
- OciHandle.cs
- MetadataSerializer.cs
- DSACryptoServiceProvider.cs
- CodeExporter.cs
- UnrecognizedPolicyAssertionElement.cs
- InheritanceUI.cs
- wgx_exports.cs
- PerformanceCountersElement.cs
- XmlSchemaAttributeGroup.cs
- MetadataExporter.cs
- MessageDecoder.cs
- SqlBulkCopyColumnMappingCollection.cs
- EtwProvider.cs
- MetricEntry.cs
- Misc.cs
- MtomMessageEncodingElement.cs
- TerminatorSinks.cs
- DocumentSequenceHighlightLayer.cs
- AmbiguousMatchException.cs
- ErrorFormatterPage.cs
- PackUriHelper.cs
- XmlSchemaAppInfo.cs
- DefaultMemberAttribute.cs
- Command.cs
- TextSelectionHelper.cs
- CodeArgumentReferenceExpression.cs
- DataServiceRequest.cs
- DataGridRow.cs
- TableProviderWrapper.cs
- DataGridViewAccessibleObject.cs
- HttpListenerContext.cs
- HashStream.cs
- Preprocessor.cs
- ExceptionUtil.cs
- TemplateBindingExpressionConverter.cs
- TextRangeEdit.cs
- ComponentEvent.cs
- InfoCardService.cs
- httpapplicationstate.cs
- LineGeometry.cs
- MemoryPressure.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- Converter.cs
- SocketSettings.cs
- NeutralResourcesLanguageAttribute.cs
- RemoteWebConfigurationHost.cs
- ArithmeticException.cs
- UIElementParagraph.cs
- ConfigXmlSignificantWhitespace.cs