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
- ISessionStateStore.cs
- StatusBarItemAutomationPeer.cs
- ZipArchive.cs
- MulticastIPAddressInformationCollection.cs
- StateElementCollection.cs
- DataObjectEventArgs.cs
- UnconditionalPolicy.cs
- FormatterConverter.cs
- BuildResult.cs
- SafeNativeMethods.cs
- DispatcherSynchronizationContext.cs
- ChannelManager.cs
- NonDualMessageSecurityOverHttp.cs
- OutputWindow.cs
- ListenDesigner.cs
- BasicCellRelation.cs
- ObjectContext.cs
- HashAlgorithm.cs
- TypeDefinition.cs
- Composition.cs
- OrderPreservingSpoolingTask.cs
- TextServicesContext.cs
- ObjectConverter.cs
- ResourceBinder.cs
- SQLInt64Storage.cs
- Pointer.cs
- StartFileNameEditor.cs
- MatrixTransform3D.cs
- PersonalizablePropertyEntry.cs
- UserPrincipalNameElement.cs
- DefaultBinder.cs
- ScrollItemPatternIdentifiers.cs
- AxHost.cs
- PolygonHotSpot.cs
- WasEndpointConfigContainer.cs
- WebControlParameterProxy.cs
- WebCategoryAttribute.cs
- SharedConnectionWorkflowTransactionService.cs
- OrthographicCamera.cs
- UpDownEvent.cs
- HttpListenerException.cs
- ComPlusSynchronizationContext.cs
- StreamGeometryContext.cs
- ColorConvertedBitmap.cs
- UIAgentMonitor.cs
- BulletChrome.cs
- SyndicationItem.cs
- Helpers.cs
- SyndicationFeed.cs
- EncodingFallbackAwareXmlTextWriter.cs
- SQLGuidStorage.cs
- Util.cs
- DataControlImageButton.cs
- ButtonColumn.cs
- ApplicationProxyInternal.cs
- COAUTHINFO.cs
- ConfigXmlCDataSection.cs
- DesignerTransactionCloseEvent.cs
- NativeMethodsOther.cs
- WithStatement.cs
- CultureTableRecord.cs
- ToolStripDropDownClosingEventArgs.cs
- OptionUsage.cs
- DataGridViewSelectedCellCollection.cs
- DependencyPropertyKey.cs
- ScrollViewer.cs
- CharEnumerator.cs
- ComboBoxItem.cs
- SqlFileStream.cs
- VectorAnimation.cs
- ListViewGroup.cs
- safelinkcollection.cs
- EnumMember.cs
- PseudoWebRequest.cs
- WindowsTitleBar.cs
- TaskExceptionHolder.cs
- UrlPropertyAttribute.cs
- ExpressionQuoter.cs
- Pair.cs
- EventHandlersStore.cs
- Stream.cs
- TypeUsage.cs
- SafeMILHandle.cs
- _KerberosClient.cs
- EventWaitHandle.cs
- XmlStreamStore.cs
- EditorZoneBase.cs
- TextBoxBase.cs
- EventTrigger.cs
- JsonReader.cs
- HelloMessageCD1.cs
- CaseInsensitiveOrdinalStringComparer.cs
- Interlocked.cs
- MemoryStream.cs
- ServiceDescriptionReflector.cs
- WebHeaderCollection.cs
- DbgUtil.cs
- RectAnimationUsingKeyFrames.cs
- OleDbException.cs
- HtmlContainerControl.cs