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
- VariableAction.cs
- Tool.cs
- Regex.cs
- SqlGenericUtil.cs
- OrderPreservingPipeliningSpoolingTask.cs
- KeyConverter.cs
- FunctionNode.cs
- _LazyAsyncResult.cs
- RemotingAttributes.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- parserscommon.cs
- HostingEnvironmentSection.cs
- Matrix3DStack.cs
- NumericExpr.cs
- WindowShowOrOpenTracker.cs
- XmlUrlEditor.cs
- WorkflowInstanceAbortedRecord.cs
- EventHandlers.cs
- XsdCachingReader.cs
- ClientBase.cs
- BufferedOutputStream.cs
- altserialization.cs
- SessionStateSection.cs
- ProcessHostMapPath.cs
- NativeMethods.cs
- AffineTransform3D.cs
- Condition.cs
- CurrentChangingEventManager.cs
- WebPartMenu.cs
- ConnectivityStatus.cs
- DataGridViewTextBoxEditingControl.cs
- ObjectDataSourceMethodEventArgs.cs
- DataSetUtil.cs
- SingleTagSectionHandler.cs
- QueueSurrogate.cs
- DocumentOrderQuery.cs
- SpellerHighlightLayer.cs
- WebMethodAttribute.cs
- MILUtilities.cs
- Model3D.cs
- Type.cs
- EventBuilder.cs
- NextPreviousPagerField.cs
- Metadata.cs
- FormsAuthenticationCredentials.cs
- formatter.cs
- HostSecurityManager.cs
- TypeReference.cs
- ChtmlPageAdapter.cs
- XAMLParseException.cs
- ChineseLunisolarCalendar.cs
- EdmEntityTypeAttribute.cs
- BindingExpressionUncommonField.cs
- Helpers.cs
- SpanIndex.cs
- UidPropertyAttribute.cs
- FontDialog.cs
- PtsHost.cs
- UInt32Storage.cs
- XmlLanguage.cs
- Selector.cs
- Enlistment.cs
- RectAnimationUsingKeyFrames.cs
- SoapFaultCodes.cs
- BevelBitmapEffect.cs
- WebPartCloseVerb.cs
- EventSinkActivity.cs
- SiblingIterators.cs
- PasswordRecovery.cs
- UnsafeNativeMethodsTablet.cs
- RequestCacheManager.cs
- Literal.cs
- RelOps.cs
- CursorConverter.cs
- TimeSpanConverter.cs
- FixedFlowMap.cs
- BamlLocalizer.cs
- SqlReorderer.cs
- DiscoveryDocumentLinksPattern.cs
- JsonMessageEncoderFactory.cs
- SystemMulticastIPAddressInformation.cs
- Misc.cs
- GradientBrush.cs
- BCryptSafeHandles.cs
- NullableLongSumAggregationOperator.cs
- DayRenderEvent.cs
- NameValueFileSectionHandler.cs
- PDBReader.cs
- SqlTransaction.cs
- LayoutTableCell.cs
- ExcludeFromCodeCoverageAttribute.cs
- RemoteX509Token.cs
- WeakReference.cs
- GlobalItem.cs
- Preprocessor.cs
- GraphicsPath.cs
- GridSplitter.cs
- NumberSubstitution.cs
- TableCell.cs
- ContentControl.cs