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
- XmlWriterDelegator.cs
- XmlSchemaImporter.cs
- CustomBindingCollectionElement.cs
- Journal.cs
- DependencyPropertyAttribute.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- DiscoveryDocumentLinksPattern.cs
- RangeContentEnumerator.cs
- ProcessRequestArgs.cs
- DBConcurrencyException.cs
- ReadOnlyCollection.cs
- DBCSCodePageEncoding.cs
- DockPatternIdentifiers.cs
- CssClassPropertyAttribute.cs
- XAMLParseException.cs
- AutomationElement.cs
- ExpressionBindingCollection.cs
- SqlDataSourceQueryEditor.cs
- XmlNodeList.cs
- SqlDataAdapter.cs
- SynchronizedInputHelper.cs
- TraceRecord.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- EntityContainerEntitySet.cs
- DockAndAnchorLayout.cs
- Number.cs
- GroupItemAutomationPeer.cs
- WebServiceFault.cs
- SimpleBitVector32.cs
- SqlInternalConnection.cs
- DataTransferEventArgs.cs
- InfoCardAsymmetricCrypto.cs
- XmlParserContext.cs
- MouseBinding.cs
- Currency.cs
- Composition.cs
- ActivationArguments.cs
- ProvidePropertyAttribute.cs
- ReaderContextStackData.cs
- WebPartConnectionsCancelVerb.cs
- XmlMembersMapping.cs
- ModifierKeysValueSerializer.cs
- SkipStoryboardToFill.cs
- RelationshipSet.cs
- CodeIdentifier.cs
- EventLogTraceListener.cs
- CodeDirectiveCollection.cs
- DateTimeValueSerializer.cs
- NonSerializedAttribute.cs
- WSSecureConversationFeb2005.cs
- MatrixTransform.cs
- WebPartConnectionsConnectVerb.cs
- ThumbButtonInfoCollection.cs
- HtmlTitle.cs
- ConfigXmlAttribute.cs
- PeerObject.cs
- XmlConvert.cs
- VerificationAttribute.cs
- DescendentsWalker.cs
- Attributes.cs
- DataSourceXmlClassAttribute.cs
- Margins.cs
- DataGridViewCellStyleConverter.cs
- RegexCaptureCollection.cs
- MarkupObject.cs
- MessageHeaders.cs
- PerformanceCounterCategory.cs
- SecurityDescriptor.cs
- SafeNativeMethods.cs
- GridViewCommandEventArgs.cs
- HashMembershipCondition.cs
- UnmanagedMemoryStreamWrapper.cs
- SimpleHandlerBuildProvider.cs
- ProfilePropertyNameValidator.cs
- NodeInfo.cs
- SignatureResourcePool.cs
- BuilderPropertyEntry.cs
- ObjectManager.cs
- DataBindEngine.cs
- EntityTypeBase.cs
- ConfigurationManagerHelper.cs
- SourceFileInfo.cs
- securitymgrsite.cs
- TextTreeTextBlock.cs
- Visual3DCollection.cs
- ListItem.cs
- KeyedByTypeCollection.cs
- WebPartAuthorizationEventArgs.cs
- HttpContext.cs
- DataTableMapping.cs
- SQLMembershipProvider.cs
- mactripleDES.cs
- PrinterUnitConvert.cs
- ToolStripSeparatorRenderEventArgs.cs
- FixedSOMElement.cs
- ProfileGroupSettingsCollection.cs
- TextServicesProperty.cs
- ConfigurationSchemaErrors.cs
- BitmapCodecInfoInternal.cs
- RegexCapture.cs