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