Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Xml / System / Xml / diagnosticsswitches.cs / 1 / diagnosticsswitches.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
//-----------------------------------------------------------------------------
namespace System.Xml {
using System.Diagnostics;
#if DEBUG
public static class DiagnosticsSwitches {
#else
internal static class DiagnosticsSwitches {
#endif
private static BooleanSwitch xmlSchemaContentModel;
private static TraceSwitch xmlSchema;
private static BooleanSwitch keepTempFiles;
private static BooleanSwitch pregenEventLog;
private static TraceSwitch xmlSerialization;
private static TraceSwitch xslTypeInference;
public static BooleanSwitch XmlSchemaContentModel {
get {
if (xmlSchemaContentModel == null) {
xmlSchemaContentModel = new BooleanSwitch("XmlSchemaContentModel", "Enable tracing for the XmlSchema content model.");
}
return xmlSchemaContentModel;
}
}
public static TraceSwitch XmlSchema {
get {
if (xmlSchema == null) {
xmlSchema = new TraceSwitch("XmlSchema", "Enable tracing for the XmlSchema class.");
}
return xmlSchema;
}
}
public static BooleanSwitch KeepTempFiles {
get {
if (keepTempFiles == null) {
keepTempFiles = new BooleanSwitch("XmlSerialization.Compilation", "Keep XmlSerialization generated (temp) files.");
}
return keepTempFiles;
}
}
public static BooleanSwitch PregenEventLog {
get {
if (pregenEventLog == null) {
pregenEventLog = new BooleanSwitch("XmlSerialization.PregenEventLog", "Log failures while loading pre-generated XmlSerialization assembly.");
}
return pregenEventLog;
}
}
public static TraceSwitch XmlSerialization {
get {
if (xmlSerialization == null) {
xmlSerialization = new TraceSwitch("XmlSerialization", "Enable tracing for the System.Xml.Serialization component.");
}
return xmlSerialization;
}
}
public static TraceSwitch XslTypeInference {
get {
if (xslTypeInference == null) {
xslTypeInference = new TraceSwitch("XslTypeInference", "Enable tracing for the XSLT type inference algorithm.");
}
return xslTypeInference;
}
}
}
}
// 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
- DataContractSet.cs
- ScrollBar.cs
- _NegotiateClient.cs
- WindowsIdentity.cs
- shaperfactoryquerycacheentry.cs
- SpAudioStreamWrapper.cs
- BuildProvidersCompiler.cs
- SelectionListDesigner.cs
- Formatter.cs
- StylusEditingBehavior.cs
- StorageFunctionMapping.cs
- AuthorizationPolicyTypeElementCollection.cs
- AcceptorSessionSymmetricMessageSecurityProtocol.cs
- SchemaTypeEmitter.cs
- StylusCaptureWithinProperty.cs
- ModuleBuilderData.cs
- DataRow.cs
- ConfigurationException.cs
- XmlSchemaSimpleType.cs
- ChangePasswordDesigner.cs
- SelectionProcessor.cs
- SQLDouble.cs
- SrgsNameValueTag.cs
- TileModeValidation.cs
- GridErrorDlg.cs
- ComplexPropertyEntry.cs
- DropDownList.cs
- XmlSchemaSimpleTypeUnion.cs
- SecurityTokenSerializer.cs
- FilterQuery.cs
- dbdatarecord.cs
- TriggerCollection.cs
- OperationInfo.cs
- CodeGenerator.cs
- Site.cs
- DocumentGridContextMenu.cs
- LinqDataSourceView.cs
- WorkflowRuntimeServiceElementCollection.cs
- EmbeddedObject.cs
- ExcludeFromCodeCoverageAttribute.cs
- TypeDescriptor.cs
- SendActivity.cs
- ListViewGroupConverter.cs
- ConditionalDesigner.cs
- codemethodreferenceexpression.cs
- MetadataItem.cs
- CodeNamespaceImportCollection.cs
- PersonalizableTypeEntry.cs
- DataGridViewImageCell.cs
- DefaultSerializationProviderAttribute.cs
- XmlSchemaObjectCollection.cs
- SQLRoleProvider.cs
- uribuilder.cs
- CodeNamespaceImportCollection.cs
- FormatterConverter.cs
- DBCommandBuilder.cs
- LinkConverter.cs
- LoginUtil.cs
- RangeValueProviderWrapper.cs
- StrokeFIndices.cs
- SqlDataSourceQuery.cs
- SspiSafeHandles.cs
- NativeMethods.cs
- XhtmlBasicObjectListAdapter.cs
- AssemblyCache.cs
- BufferedOutputStream.cs
- FormsAuthenticationUser.cs
- ColumnTypeConverter.cs
- SqlBulkCopyColumnMapping.cs
- ParseNumbers.cs
- FileBasedResourceGroveler.cs
- TransformConverter.cs
- Graph.cs
- FrameworkContextData.cs
- EmptyCollection.cs
- CompoundFileStorageReference.cs
- IndicShape.cs
- CodeAttributeDeclaration.cs
- FormParameter.cs
- Helpers.cs
- DocumentViewer.cs
- MarkupExtensionReturnTypeAttribute.cs
- Math.cs
- Helpers.cs
- FontUnitConverter.cs
- Renderer.cs
- Schema.cs
- DefinitionUpdate.cs
- AppDomainInfo.cs
- XmlSerializerAssemblyAttribute.cs
- JoinElimination.cs
- DispatcherTimer.cs
- Blend.cs
- ProxyGenerationError.cs
- EnumerableRowCollection.cs
- CodeTypeOfExpression.cs
- TabItemWrapperAutomationPeer.cs
- AutomationElementCollection.cs
- OleDbMetaDataFactory.cs
- TextInfo.cs