Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BitmapEffectRenderDataResource.cs
- SecurityVerifiedMessage.cs
- MetadataPropertyCollection.cs
- Message.cs
- ToolStripDropDownClosingEventArgs.cs
- LazyLoadBehavior.cs
- _FtpControlStream.cs
- InProcStateClientManager.cs
- RubberbandSelector.cs
- NetMsmqSecurityMode.cs
- PLINQETWProvider.cs
- RadioButtonList.cs
- MembershipUser.cs
- TraceSection.cs
- WindowsListViewGroupHelper.cs
- XmlValidatingReaderImpl.cs
- StreamGeometry.cs
- EncryptedKey.cs
- XmlIterators.cs
- CellRelation.cs
- FormsAuthenticationUser.cs
- HtmlTable.cs
- XPathDocumentBuilder.cs
- SqlDataSource.cs
- NavigationFailedEventArgs.cs
- TimeEnumHelper.cs
- ClientSettings.cs
- FlagsAttribute.cs
- ObjectQueryProvider.cs
- ContainerVisual.cs
- HashRepartitionStream.cs
- XmlAttributeHolder.cs
- GlobalizationAssembly.cs
- ApplicationInfo.cs
- BaseAsyncResult.cs
- CallId.cs
- ControlParameter.cs
- InputManager.cs
- IRCollection.cs
- WmpBitmapDecoder.cs
- DragEventArgs.cs
- EventLogException.cs
- PictureBox.cs
- ResourceDescriptionAttribute.cs
- IERequestCache.cs
- DataPagerField.cs
- XamlWriterExtensions.cs
- HttpContext.cs
- GridViewAutomationPeer.cs
- SortDescriptionCollection.cs
- VScrollProperties.cs
- StringConverter.cs
- ProtocolImporter.cs
- DefaultMergeHelper.cs
- TextEndOfParagraph.cs
- AttributeCollection.cs
- ProofTokenCryptoHandle.cs
- DataServices.cs
- MimeTypeMapper.cs
- LockRecursionException.cs
- OpenTypeLayoutCache.cs
- ValueUtilsSmi.cs
- TypeSystem.cs
- FocusChangedEventArgs.cs
- METAHEADER.cs
- IdentityValidationException.cs
- HtmlTitle.cs
- RowParagraph.cs
- DataGridViewCellStyleChangedEventArgs.cs
- ScriptControl.cs
- StringArrayConverter.cs
- LongTypeConverter.cs
- ImageBrush.cs
- DiscreteKeyFrames.cs
- XmlIgnoreAttribute.cs
- ServerValidateEventArgs.cs
- SmiMetaDataProperty.cs
- ObjectListDataBindEventArgs.cs
- BamlRecords.cs
- NewItemsContextMenuStrip.cs
- BuildResultCache.cs
- DataServiceQueryProvider.cs
- HwndStylusInputProvider.cs
- UserMapPath.cs
- GiveFeedbackEventArgs.cs
- WebBrowserUriTypeConverter.cs
- SQLMembershipProvider.cs
- ApplicationSecurityManager.cs
- AutoSizeComboBox.cs
- SendSecurityHeader.cs
- LocationUpdates.cs
- MetadataCache.cs
- ParameterRetriever.cs
- SoapReflectionImporter.cs
- XmlSchemaComplexContent.cs
- RemotingClientProxy.cs
- TargetParameterCountException.cs
- Vector3DKeyFrameCollection.cs
- SystemException.cs
- MultiSelector.cs