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
- MaskDescriptor.cs
- CompiledQueryCacheEntry.cs
- ValidationHelpers.cs
- BufferAllocator.cs
- ContextMenuStrip.cs
- StreamWithDictionary.cs
- DesignerAutoFormatStyle.cs
- StringValueSerializer.cs
- XPathMessageFilterElement.cs
- SessionStateContainer.cs
- ByteStreamBufferedMessageData.cs
- WindowsListViewGroupHelper.cs
- XPathAncestorIterator.cs
- DetailsViewDeleteEventArgs.cs
- DataSourceControl.cs
- COM2Properties.cs
- PropertyPushdownHelper.cs
- WindowVisualStateTracker.cs
- EndPoint.cs
- PropertyRef.cs
- ImportOptions.cs
- LayoutDump.cs
- OrderPreservingSpoolingTask.cs
- CustomLineCap.cs
- httpstaticobjectscollection.cs
- RSACryptoServiceProvider.cs
- SoapEnumAttribute.cs
- FixUpCollection.cs
- SafeCryptContextHandle.cs
- FileCodeGroup.cs
- ServiceMetadataBehavior.cs
- OrderedDictionary.cs
- ServiceModelActivationSectionGroup.cs
- TimestampInformation.cs
- TraceLog.cs
- ExitEventArgs.cs
- PerformanceCounterPermissionEntryCollection.cs
- WrappedDispatcherException.cs
- ListCollectionView.cs
- XpsException.cs
- ClientCultureInfo.cs
- ToolStripComboBox.cs
- cache.cs
- PartBasedPackageProperties.cs
- SafeHandle.cs
- Attributes.cs
- FlowLayoutPanel.cs
- BypassElement.cs
- ProcessThread.cs
- CounterSample.cs
- CodeMemberField.cs
- VariableElement.cs
- OptimalBreakSession.cs
- DirectoryNotFoundException.cs
- HtmlInputPassword.cs
- XmlSchemaDatatype.cs
- ImpersonateTokenRef.cs
- LayoutManager.cs
- Literal.cs
- StorageComplexPropertyMapping.cs
- ThreadWorkerController.cs
- XmlProcessingInstruction.cs
- BinaryWriter.cs
- ConfigurationPropertyAttribute.cs
- ToolStripSeparator.cs
- RegistrySecurity.cs
- CornerRadiusConverter.cs
- ApplicationContext.cs
- FontFaceLayoutInfo.cs
- XmlSchemaObject.cs
- Rights.cs
- BaseUriHelper.cs
- KnownTypeAttribute.cs
- ProcessThreadCollection.cs
- Console.cs
- MdImport.cs
- BuildManager.cs
- EpmSourcePathSegment.cs
- PinProtectionHelper.cs
- X509ChainElement.cs
- DataGridViewColumnEventArgs.cs
- ASCIIEncoding.cs
- ClonableStack.cs
- LinqExpressionNormalizer.cs
- DataGridCellsPresenter.cs
- precedingquery.cs
- XmlWriter.cs
- LabelLiteral.cs
- EntityContainer.cs
- dbdatarecord.cs
- BinaryObjectReader.cs
- TreeViewEvent.cs
- RtfToXamlReader.cs
- ObjectViewEntityCollectionData.cs
- MobileControl.cs
- StickyNote.cs
- CompensatableSequenceActivity.cs
- SqlUtils.cs
- PublisherMembershipCondition.cs
- WebPartConnectionCollection.cs