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
- SettingsPropertyNotFoundException.cs
- XsltLoader.cs
- Empty.cs
- AppDomainAttributes.cs
- BoundColumn.cs
- CardSpacePolicyElement.cs
- DataGridViewCellConverter.cs
- ListMarkerLine.cs
- XhtmlBasicValidatorAdapter.cs
- StringSorter.cs
- SafeHandles.cs
- NativeMethods.cs
- IisTraceWebEventProvider.cs
- SuppressMergeCheckAttribute.cs
- SafeHandle.cs
- AssemblyHelper.cs
- PassportIdentity.cs
- DataGridViewBindingCompleteEventArgs.cs
- ViewGenerator.cs
- LocalizationParserHooks.cs
- SourceCollection.cs
- SqlDesignerDataSourceView.cs
- BadImageFormatException.cs
- MergablePropertyAttribute.cs
- XmlSignificantWhitespace.cs
- OdbcConnectionPoolProviderInfo.cs
- CheckBoxRenderer.cs
- TextServicesPropertyRanges.cs
- WindowsListViewGroupSubsetLink.cs
- WorkflowApplicationUnhandledExceptionEventArgs.cs
- PluggableProtocol.cs
- WebPartHelpVerb.cs
- WebConfigurationFileMap.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- WebBaseEventKeyComparer.cs
- DurableInstanceProvider.cs
- GroupBox.cs
- FillErrorEventArgs.cs
- TemplateBindingExtension.cs
- MouseGestureValueSerializer.cs
- MetaColumn.cs
- SymmetricKeyWrap.cs
- TableLayoutPanel.cs
- ResourceContainer.cs
- ShapeTypeface.cs
- HMACSHA384.cs
- XmlLoader.cs
- DiffuseMaterial.cs
- Expressions.cs
- KeyInstance.cs
- MediaTimeline.cs
- TextSelection.cs
- InternalPermissions.cs
- Int32.cs
- ByteStreamGeometryContext.cs
- ObservableDictionary.cs
- EventData.cs
- GenerateTemporaryTargetAssembly.cs
- RawAppCommandInputReport.cs
- ControlParameter.cs
- DesigntimeLicenseContextSerializer.cs
- OperatingSystemVersionCheck.cs
- FileClassifier.cs
- DeferredElementTreeState.cs
- MD5.cs
- DataBoundControl.cs
- versioninfo.cs
- WebCodeGenerator.cs
- ClientSettingsStore.cs
- ToolStripControlHost.cs
- XmlDocumentType.cs
- ClientType.cs
- BamlVersionHeader.cs
- ModifierKeysConverter.cs
- KoreanLunisolarCalendar.cs
- SafeViewOfFileHandle.cs
- NonBatchDirectoryCompiler.cs
- FileDialogCustomPlacesCollection.cs
- NetworkInterface.cs
- SafeFileMapViewHandle.cs
- lengthconverter.cs
- AssemblyName.cs
- Parameter.cs
- TabItemWrapperAutomationPeer.cs
- XmlNavigatorFilter.cs
- XmlDataCollection.cs
- RoleService.cs
- VisualTarget.cs
- DiffuseMaterial.cs
- SmiConnection.cs
- ValidationRuleCollection.cs
- FilterInvalidBodyAccessException.cs
- CompatibleComparer.cs
- AnnotationHighlightLayer.cs
- CaseKeyBox.ViewModel.cs
- COM2ExtendedTypeConverter.cs
- DataTableNewRowEvent.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- ToolboxComponentsCreatedEventArgs.cs
- WinFormsUtils.cs