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
- CollectionBase.cs
- NodeInfo.cs
- DataViewListener.cs
- WS2007HttpBinding.cs
- IdentityReference.cs
- IncrementalHitTester.cs
- GeneralTransform3D.cs
- PropertyToken.cs
- BitmapCache.cs
- HybridDictionary.cs
- ExecutionContext.cs
- WCFModelStrings.Designer.cs
- Blend.cs
- DriveInfo.cs
- ImplicitInputBrush.cs
- PropertyFilterAttribute.cs
- ValidatedMobileControlConverter.cs
- NaturalLanguageHyphenator.cs
- mediaeventargs.cs
- GeneralTransform2DTo3DTo2D.cs
- ToolstripProfessionalRenderer.cs
- TimeoutValidationAttribute.cs
- MonthChangedEventArgs.cs
- TemplatingOptionsDialog.cs
- MSAANativeProvider.cs
- ConcurrentQueue.cs
- RoutedEvent.cs
- SqlRowUpdatingEvent.cs
- ServiceModelConfigurationSectionCollection.cs
- FilterQuery.cs
- X509RawDataKeyIdentifierClause.cs
- Latin1Encoding.cs
- DiagnosticsConfiguration.cs
- BasePropertyDescriptor.cs
- MimeBasePart.cs
- Avt.cs
- WebPartTracker.cs
- ParameterReplacerVisitor.cs
- ToolBarButton.cs
- QfeChecker.cs
- ServiceDescriptionReflector.cs
- HttpRequestContext.cs
- EntityContainer.cs
- MessageDecoder.cs
- EnumConverter.cs
- StreamAsIStream.cs
- Stylus.cs
- StylusPointProperties.cs
- DynamicControl.cs
- SecurityPolicySection.cs
- SecureStringHasher.cs
- AssemblySettingAttributes.cs
- DrawingContextWalker.cs
- WindowShowOrOpenTracker.cs
- DuplicateWaitObjectException.cs
- MetadataWorkspace.cs
- XhtmlTextWriter.cs
- DataGridViewColumnCollectionEditor.cs
- EventPropertyMap.cs
- CriticalExceptions.cs
- RuleSettings.cs
- ZipIORawDataFileBlock.cs
- AffineTransform3D.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- UdpRetransmissionSettings.cs
- PersonalizationAdministration.cs
- ReadContentAsBinaryHelper.cs
- ZipIOCentralDirectoryBlock.cs
- XsltOutput.cs
- COM2ComponentEditor.cs
- TraversalRequest.cs
- panel.cs
- SoundPlayerAction.cs
- NameTable.cs
- ValidationError.cs
- filewebresponse.cs
- XmlMapping.cs
- CodeAccessPermission.cs
- propertyentry.cs
- OperationGenerator.cs
- InternalControlCollection.cs
- DbMetaDataFactory.cs
- HttpRequest.cs
- MetadataItemCollectionFactory.cs
- ImageCodecInfoPrivate.cs
- InputScopeConverter.cs
- FixedNode.cs
- XamlPoint3DCollectionSerializer.cs
- HttpRawResponse.cs
- OutputCacheSection.cs
- ColumnMapVisitor.cs
- InvalidPropValue.cs
- EngineSite.cs
- ResXResourceReader.cs
- StrongNameKeyPair.cs
- ContractNamespaceAttribute.cs
- TextStore.cs
- GridItemProviderWrapper.cs
- DispatchWrapper.cs
- LiteralControl.cs