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
- SchemaLookupTable.cs
- StreamGeometry.cs
- Polygon.cs
- DbMetaDataColumnNames.cs
- ReliabilityContractAttribute.cs
- FontStretchConverter.cs
- ISFTagAndGuidCache.cs
- CurrentChangingEventArgs.cs
- SourceChangedEventArgs.cs
- Repeater.cs
- ToolStripTemplateNode.cs
- HtmlControl.cs
- RemotingConfigParser.cs
- HostedBindingBehavior.cs
- ImplicitInputBrush.cs
- Int32AnimationBase.cs
- DataObjectMethodAttribute.cs
- Comparer.cs
- SamlConditions.cs
- precedingsibling.cs
- AudioSignalProblemOccurredEventArgs.cs
- InputLanguageSource.cs
- ContentPosition.cs
- ImageClickEventArgs.cs
- SmiConnection.cs
- WebCodeGenerator.cs
- WindowsClaimSet.cs
- SQLBytes.cs
- StringBuilder.cs
- XmlComplianceUtil.cs
- BindingGroup.cs
- CryptoApi.cs
- Int32RectValueSerializer.cs
- VolatileResourceManager.cs
- DataView.cs
- SafeTimerHandle.cs
- Stopwatch.cs
- RefreshEventArgs.cs
- unitconverter.cs
- SqlCaseSimplifier.cs
- ProjectionCamera.cs
- HtmlGenericControl.cs
- EmbossBitmapEffect.cs
- URLAttribute.cs
- BoundField.cs
- HGlobalSafeHandle.cs
- ParseElement.cs
- BulletChrome.cs
- UnwrappedTypesXmlSerializerManager.cs
- Composition.cs
- CatalogPartChrome.cs
- VerificationException.cs
- SupportingTokenDuplexChannel.cs
- storagemappingitemcollection.viewdictionary.cs
- BatchServiceHost.cs
- FormViewPagerRow.cs
- XmlSchemaSubstitutionGroup.cs
- Currency.cs
- CodeCatchClauseCollection.cs
- PassportPrincipal.cs
- UniformGrid.cs
- ThicknessAnimation.cs
- ToolstripProfessionalRenderer.cs
- EnumDataContract.cs
- BrushMappingModeValidation.cs
- GridViewRowCollection.cs
- ToolBar.cs
- FixUp.cs
- DataSetMappper.cs
- DBSqlParserTable.cs
- EntityDataSourceContainerNameConverter.cs
- WebPartDisplayModeEventArgs.cs
- LoadedOrUnloadedOperation.cs
- SpeechSynthesizer.cs
- NetSectionGroup.cs
- SqlGatherConsumedAliases.cs
- TransformCollection.cs
- _LocalDataStoreMgr.cs
- ScaleTransform3D.cs
- QuaternionRotation3D.cs
- FrameworkTextComposition.cs
- PathFigureCollection.cs
- PropertyEmitterBase.cs
- StaticExtension.cs
- EventMappingSettings.cs
- DataGridColumnCollection.cs
- RemotingException.cs
- CategoryNameCollection.cs
- DataFormats.cs
- KeysConverter.cs
- XmlNamespaceDeclarationsAttribute.cs
- PropertyConverter.cs
- ViewKeyConstraint.cs
- ProfileServiceManager.cs
- CacheVirtualItemsEvent.cs
- BasicExpandProvider.cs
- PartialList.cs
- LocalizableAttribute.cs
- QueryTask.cs
- WebPartCancelEventArgs.cs