Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- Flowchart.cs
- FormClosedEvent.cs
- SizeAnimationBase.cs
- ValidationVisibilityAttribute.cs
- WebResponse.cs
- RegionIterator.cs
- DependencyPropertyConverter.cs
- HttpCapabilitiesEvaluator.cs
- HeaderedItemsControl.cs
- PagesSection.cs
- SystemPens.cs
- InvalidBodyAccessException.cs
- Expr.cs
- InternalConfigHost.cs
- Stack.cs
- BuildManager.cs
- assemblycache.cs
- TypeExtensionConverter.cs
- Win32Exception.cs
- NeutralResourcesLanguageAttribute.cs
- UrlMappingsSection.cs
- PropertyEmitterBase.cs
- XmlSchemaCompilationSettings.cs
- ClientRolePrincipal.cs
- MetadataHelper.cs
- EventProperty.cs
- IsolationInterop.cs
- PriorityRange.cs
- HttpHandlerActionCollection.cs
- ProfilePropertySettingsCollection.cs
- WebHttpDispatchOperationSelector.cs
- RotateTransform3D.cs
- InternalResources.cs
- ClientTargetCollection.cs
- GroupJoinQueryOperator.cs
- FlowDocument.cs
- EntityCommandDefinition.cs
- SBCSCodePageEncoding.cs
- DoubleCollection.cs
- MaskInputRejectedEventArgs.cs
- SpoolingTask.cs
- ScriptRegistrationManager.cs
- DocumentXmlWriter.cs
- LocatorBase.cs
- Interlocked.cs
- EventProviderWriter.cs
- TablePatternIdentifiers.cs
- Renderer.cs
- CodeNamespace.cs
- RayMeshGeometry3DHitTestResult.cs
- TextInfo.cs
- SafeBitVector32.cs
- CompressStream.cs
- ObjectNotFoundException.cs
- HiddenField.cs
- AdRotatorDesigner.cs
- FrugalMap.cs
- UdpReplyToBehavior.cs
- DataGridViewColumnTypeEditor.cs
- XmlStrings.cs
- Compiler.cs
- EntitySet.cs
- CallbackValidatorAttribute.cs
- HealthMonitoringSectionHelper.cs
- TrackingServices.cs
- LZCodec.cs
- DataGridViewAdvancedBorderStyle.cs
- CssStyleCollection.cs
- WmpBitmapEncoder.cs
- ConstructorBuilder.cs
- activationcontext.cs
- OracleEncoding.cs
- ServiceElementCollection.cs
- FileDialogCustomPlacesCollection.cs
- ThreadExceptionDialog.cs
- NullableBoolConverter.cs
- PrintDialogDesigner.cs
- MailDefinition.cs
- BatchParser.cs
- StackBuilderSink.cs
- HttpDictionary.cs
- PackWebRequestFactory.cs
- SimpleType.cs
- GeneratedContractType.cs
- Vector3DAnimation.cs
- JsonFormatGeneratorStatics.cs
- PeerResolverElement.cs
- TrackingStringDictionary.cs
- SkewTransform.cs
- PropertyGrid.cs
- rsa.cs
- TextElement.cs
- HeaderUtility.cs
- GrammarBuilderBase.cs
- FocusChangedEventArgs.cs
- DomNameTable.cs
- dsa.cs
- PageCodeDomTreeGenerator.cs
- EncryptedData.cs
- ValuePatternIdentifiers.cs