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
- Transform3D.cs
- BindingExpressionUncommonField.cs
- ClusterSafeNativeMethods.cs
- FileCodeGroup.cs
- EntityContainerEntitySetDefiningQuery.cs
- ConsoleCancelEventArgs.cs
- PolicyFactory.cs
- CodeDelegateCreateExpression.cs
- IntegerValidator.cs
- CodeCommentStatement.cs
- SecurityPermission.cs
- DateTimeConverter2.cs
- OleDbCommand.cs
- RTLAwareMessageBox.cs
- LayoutUtils.cs
- BamlReader.cs
- ParsedAttributeCollection.cs
- ParserExtension.cs
- Ppl.cs
- RequestValidator.cs
- SqlCacheDependencyDatabase.cs
- FieldBuilder.cs
- XmlParserContext.cs
- HandledEventArgs.cs
- EncodingStreamWrapper.cs
- Rotation3D.cs
- GridViewCommandEventArgs.cs
- StreamInfo.cs
- __Filters.cs
- BitmapEffectGroup.cs
- DataServices.cs
- ChildChangedEventArgs.cs
- Wizard.cs
- Regex.cs
- EntityClientCacheEntry.cs
- ADConnectionHelper.cs
- ResourceBinder.cs
- SqlDataSource.cs
- QuadraticBezierSegment.cs
- CurrentTimeZone.cs
- AsyncResult.cs
- ParserOptions.cs
- BamlBinaryReader.cs
- DateTimeConverter.cs
- EdmSchemaAttribute.cs
- DataTableReaderListener.cs
- ScriptRegistrationManager.cs
- State.cs
- ToolStripDropDown.cs
- XmlAtomicValue.cs
- StorageConditionPropertyMapping.cs
- RsaSecurityKey.cs
- DataGridViewRowsAddedEventArgs.cs
- XmlSchemaAll.cs
- HtmlElement.cs
- StickyNoteAnnotations.cs
- TagMapCollection.cs
- ModelPerspective.cs
- ConstrainedDataObject.cs
- DiscriminatorMap.cs
- Bitmap.cs
- SafeLibraryHandle.cs
- XsltArgumentList.cs
- RadioButtonStandardAdapter.cs
- DataGrid.cs
- OleDbPropertySetGuid.cs
- ModuleElement.cs
- Int32AnimationBase.cs
- SqlBulkCopyColumnMappingCollection.cs
- EventHandlersStore.cs
- ZoomPercentageConverter.cs
- EvidenceBase.cs
- SimpleMailWebEventProvider.cs
- QuaternionKeyFrameCollection.cs
- OdbcErrorCollection.cs
- WebServiceData.cs
- FreezableOperations.cs
- SendKeys.cs
- Color.cs
- TdsEnums.cs
- SoapReflectionImporter.cs
- ImageConverter.cs
- AppLevelCompilationSectionCache.cs
- FeatureSupport.cs
- PipeStream.cs
- FixUp.cs
- BaseServiceProvider.cs
- EncryptedPackage.cs
- DesignerOptionService.cs
- Privilege.cs
- WebControlAdapter.cs
- XmlILAnnotation.cs
- CodeGen.cs
- ApplicationManager.cs
- _ProxyChain.cs
- ResourceSetExpression.cs
- HyperlinkAutomationPeer.cs
- CursorInteropHelper.cs
- PropertyGridEditorPart.cs
- AnimationStorage.cs