Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / Misc / CoreSwitches.cs / 1 / CoreSwitches.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.ComponentModel {
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
///
// Shared between dlls
[SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal static class CoreSwitches {
private static BooleanSwitch perfTrack;
public static BooleanSwitch PerfTrack {
[SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
get {
if (perfTrack == null) {
perfTrack = new BooleanSwitch("PERFTRACK", "Debug performance critical sections.");
}
return perfTrack;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.ComponentModel {
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
///
// Shared between dlls
[SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal static class CoreSwitches {
private static BooleanSwitch perfTrack;
public static BooleanSwitch PerfTrack {
[SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
get {
if (perfTrack == null) {
perfTrack = new BooleanSwitch("PERFTRACK", "Debug performance critical sections.");
}
return perfTrack;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SolidBrush.cs
- RelatedCurrencyManager.cs
- SynchronizedDispatch.cs
- ISSmlParser.cs
- AssemblyAttributes.cs
- NominalTypeEliminator.cs
- DirectoryRootQuery.cs
- SspiSecurityTokenParameters.cs
- HTTPNotFoundHandler.cs
- FontClient.cs
- EdgeProfileValidation.cs
- SamlEvidence.cs
- UntypedNullExpression.cs
- HtmlFormWrapper.cs
- SqlUnionizer.cs
- SqlDataSourceCustomCommandPanel.cs
- EventDescriptor.cs
- TreeViewDesigner.cs
- ColumnMapProcessor.cs
- CallId.cs
- InstallerTypeAttribute.cs
- NativeMethods.cs
- PageThemeParser.cs
- GCHandleCookieTable.cs
- PrintDialog.cs
- NativeMethods.cs
- OdbcStatementHandle.cs
- GroupLabel.cs
- COM2EnumConverter.cs
- Helper.cs
- DataGridViewRowCancelEventArgs.cs
- X509SecurityToken.cs
- WebBrowserHelper.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- XmlSchemaIdentityConstraint.cs
- SqlInfoMessageEvent.cs
- WebAdminConfigurationHelper.cs
- Peer.cs
- TraceHandler.cs
- DetailsViewDeleteEventArgs.cs
- SizeChangedInfo.cs
- InstanceStoreQueryResult.cs
- StringSorter.cs
- VirtualizingStackPanel.cs
- CacheMemory.cs
- Geometry.cs
- AttributeAction.cs
- BackoffTimeoutHelper.cs
- ControlDesigner.cs
- ResourceLoader.cs
- FileChangeNotifier.cs
- ProgressBarAutomationPeer.cs
- OleDbFactory.cs
- StrokeCollection.cs
- HuffmanTree.cs
- XdrBuilder.cs
- GetReadStreamResult.cs
- ITextView.cs
- ConnectionDemuxer.cs
- Win32KeyboardDevice.cs
- ConversionValidationRule.cs
- DirectoryInfo.cs
- PopupEventArgs.cs
- AttributeData.cs
- CheckedPointers.cs
- MetadataPropertyvalue.cs
- SqlDataSourceQueryConverter.cs
- AssemblyCache.cs
- EntityClassGenerator.cs
- BinaryWriter.cs
- ToolStripItem.cs
- NullableConverter.cs
- WindowsTreeView.cs
- MyContact.cs
- PropertyConverter.cs
- QuaternionRotation3D.cs
- CultureSpecificStringDictionary.cs
- XmlSchemaGroupRef.cs
- CurrencyManager.cs
- Compiler.cs
- DataSourceControlBuilder.cs
- Walker.cs
- SiteMapNodeItemEventArgs.cs
- Attribute.cs
- HuffCodec.cs
- Soap12ServerProtocol.cs
- InputReferenceExpression.cs
- BridgeDataRecord.cs
- TypeDescriptor.cs
- CustomSignedXml.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- Gdiplus.cs
- MobileResource.cs
- XslCompiledTransform.cs
- ArglessEventHandlerProxy.cs
- DockingAttribute.cs
- CodeIdentifier.cs
- ResourceManager.cs
- WindowsListViewItemStartMenu.cs
- Renderer.cs