1 write to Enabled
PresentationCore (1)
Core\CSharp\MS\Internal\AppModel\SiteOfOriginContainer.cs (1)
214_traceSwitch.Enabled = value;
41 references to Enabled
PresentationCore (1)
Core\CSharp\MS\Internal\AppModel\SiteOfOriginContainer.cs (1)
209return _traceSwitch.Enabled;
System (9)
compmod\system\componentmodel\ReflectEventDescriptor.cs (4)
180Debug.Assert(!CompModSwitches.CommonDesignerServices.Enabled || changeService != null, "IComponentChangeService not found"); 203Debug.Assert(!CompModSwitches.CommonDesignerServices.Enabled || dict != null, "IDictionaryService not found"); 443Debug.Assert(!CompModSwitches.CommonDesignerServices.Enabled || changeService != null, "IComponentChangeService not found"); 462Debug.Assert(!CompModSwitches.CommonDesignerServices.Enabled || dict != null, "IDictionaryService not found");
compmod\system\componentmodel\ReflectPropertyDescriptor.cs (4)
630Debug.Assert(!CompModSwitches.CommonDesignerServices.Enabled || changeService != null, "IComponentChangeService not found"); 673Debug.Assert(!CompModSwitches.CommonDesignerServices.Enabled || changeService != null, "IComponentChangeService not found"); 1050Debug.Assert(!CompModSwitches.CommonDesignerServices.Enabled || changeService != null, "IComponentChangeService not found"); 1118Debug.Assert(!CompModSwitches.CommonDesignerServices.Enabled || changeService != null, "IComponentChangeService not found");
compmod\system\componentmodel\TypeDescriptor.cs (1)
3335Debug.WriteLineIf(TraceDescriptor.Enabled, string.Format(CultureInfo.InvariantCulture, "TypeDescriptor : {0}", string.Format(CultureInfo.InvariantCulture, message, args)));
System.Data.Entity (1)
System\Data\Query\PlanCompiler\PlanCompiler.cs (1)
477if (_applyTransformationsRegardlessOfSize.Enabled || this.m_command.NextNodeId < MaxNodeCountForTransformations)
System.Drawing (1)
misc\DebugHandleTracker.cs (1)
44if (CompModSwitches.HandleLeak.Level > TraceLevel.Off || CompModSwitches.TraceCollect.Enabled) {
System.Web (10)
Compilation\CodeDOMUtility.cs (10)
50if (WebFormsCompilation.Enabled) Debug.WriteLine("simple string"); 54if (WebFormsCompilation.Enabled) Debug.WriteLine("primitive"); 62if (WebFormsCompilation.Enabled) Debug.WriteLine("primitive to object"); 66if (WebFormsCompilation.Enabled) Debug.WriteLine("array"); 81if (WebFormsCompilation.Enabled) Debug.WriteLine("other"); 99if (WebFormsCompilation.Enabled) Debug.WriteLine("has converter with instance descriptor"); 104if (WebFormsCompilation.Enabled) Debug.WriteLine("persistinfo is a field ref"); 111if (WebFormsCompilation.Enabled) Debug.WriteLine("persistinfo is a property ref"); 132if (WebFormsCompilation.Enabled) Debug.WriteLine("persistinfo is a method invoke"); 148if (WebFormsCompilation.Enabled) Debug.WriteLine("persistinfo is a constructor call");
System.Web.Services (3)
System\Web\Services\Discovery\DiscoveryRequestHandler.cs (1)
89CompModSwitches.DynamicDiscoveryVirtualSearch.Enabled // virtual search forced (for test suites).
System\Web\Services\Protocols\RemoteDebugger.cs (2)
52enabled = !CompModSwitches.DisableRemoteDebugging.Enabled && Debugger.IsAttached && Connection != null; 67if (CompModSwitches.DisableRemoteDebugging.Enabled)
System.Windows.Forms (3)
misc\DebugHandleTracker.cs (1)
44if (CompModSwitches.HandleLeak.Level > TraceLevel.Off || CompModSwitches.TraceCollect.Enabled) {
winforms\Managed\System\WinForms\NativeWindow.cs (1)
775Debug.WriteLineIf(CoreSwitches.PerfTrack.Enabled, "Handle created of type '" + cp.ClassName + "' with caption '" + cp.Caption + "' from NativeWindow of type '" + GetType().FullName + "'");
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (1)
1634if (PbrsAssertPropsSwitch.Enabled)
System.Workflow.ComponentModel (2)
AuthoringOM\Trace.cs (2)
74if (logToFile.Enabled) 85if (traceToDefault.Enabled)
System.Workflow.Runtime (2)
WorkflowExecutor.cs (1)
124workflowDebuggingDisabled = disableWorkflowDebugging.Enabled;
WorkflowRuntime.cs (1)
203if (!disableWorkflowDebugging.Enabled)
System.Xml (9)
System\Xml\Schema\ContentValidator.cs (2)
1130Debug.WriteLineIf(DiagnosticsSwitches.XmlSchemaContentModel.Enabled, "\t\t\tContentType: " + ctype); 1134Debug.WriteLineIf(DiagnosticsSwitches.XmlSchemaContentModel.Enabled, "\t\t\tContent: EMPTY");
System\Xml\Serialization\CodeGenerator.cs (3)
253if (DiagnosticsSwitches.KeepTempFiles.Enabled) 1735if (DiagnosticsSwitches.KeepTempFiles.Enabled) 1769if (DiagnosticsSwitches.KeepTempFiles.Enabled)
System\Xml\Serialization\Compilation.cs (2)
160bool logEnabled = DiagnosticsSwitches.PregenEventLog.Enabled; 508if (DiagnosticsSwitches.KeepTempFiles.Enabled) {
System\Xml\Serialization\Compiler.cs (1)
29bool debugEnabled = DiagnosticsSwitches.KeepTempFiles.Enabled;
System\Xml\Serialization\XmlReflectionImporter.cs (1)
2034this.maxDepth = DiagnosticsSwitches.NonRecursiveTypeLoading.Enabled ? 1 : int.MaxValue;