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
- ScaleTransform3D.cs
- HttpCookiesSection.cs
- WebHttpBindingElement.cs
- CommonGetThemePartSize.cs
- ACE.cs
- NameService.cs
- LineInfo.cs
- CheckBoxField.cs
- WebEventCodes.cs
- DataViewManagerListItemTypeDescriptor.cs
- CallTemplateAction.cs
- CodePropertyReferenceExpression.cs
- Drawing.cs
- ComponentRenameEvent.cs
- TextTrailingCharacterEllipsis.cs
- DbQueryCommandTree.cs
- TypedServiceChannelBuilder.cs
- RestHandlerFactory.cs
- MarshalByValueComponent.cs
- ProcessModelSection.cs
- PolicyManager.cs
- XmlSerializableReader.cs
- RoutingService.cs
- DataGridComboBoxColumn.cs
- DataList.cs
- RtfToken.cs
- ConfigPathUtility.cs
- BehaviorEditorPart.cs
- DynamicObject.cs
- WebPartHeaderCloseVerb.cs
- Exception.cs
- NamespaceCollection.cs
- WebProxyScriptElement.cs
- DSACryptoServiceProvider.cs
- RewritingPass.cs
- ExpressionsCollectionEditor.cs
- CustomError.cs
- Condition.cs
- IncomingWebRequestContext.cs
- ContainsRowNumberChecker.cs
- CustomAttributeSerializer.cs
- TreeNodeCollection.cs
- SqlNodeAnnotation.cs
- ItemsPresenter.cs
- MetadataUtilsSmi.cs
- TabControlEvent.cs
- AncillaryOps.cs
- WebDescriptionAttribute.cs
- DirectoryNotFoundException.cs
- SubMenuStyle.cs
- XmlReflectionMember.cs
- X509Utils.cs
- PackageRelationship.cs
- DataProtection.cs
- tabpagecollectioneditor.cs
- QilExpression.cs
- LayoutEngine.cs
- Graph.cs
- EventItfInfo.cs
- XmlNavigatorFilter.cs
- TextSelectionHighlightLayer.cs
- XmlQualifiedName.cs
- MatcherBuilder.cs
- ModuleBuilderData.cs
- BaseTemplateParser.cs
- TabControl.cs
- XmlSchemaDocumentation.cs
- _AuthenticationState.cs
- DescriptionAttribute.cs
- XMLSyntaxException.cs
- SqlParameter.cs
- Int32RectConverter.cs
- IPEndPointCollection.cs
- BufferedResponseStream.cs
- _ConnectOverlappedAsyncResult.cs
- XmlSchemaGroup.cs
- SurrogateSelector.cs
- NetTcpSecurity.cs
- SplitterPanelDesigner.cs
- CompressionTransform.cs
- TextTreeFixupNode.cs
- SystemTcpStatistics.cs
- ResourceWriter.cs
- TreeViewHitTestInfo.cs
- NativeCompoundFileAPIs.cs
- MappingException.cs
- PtsHost.cs
- FamilyMap.cs
- PlaceHolder.cs
- Thickness.cs
- UrlAuthorizationModule.cs
- RuleSetReference.cs
- DataGridViewCellValidatingEventArgs.cs
- WindowPattern.cs
- VisualTarget.cs
- WebPartPersonalization.cs
- TemplateControlCodeDomTreeGenerator.cs
- ControlCachePolicy.cs
- InstanceNormalEvent.cs
- recordstate.cs