1 write to _switch
PresentationFramework (1)
MS\Internal\Documents\DocumentsTrace.cs (1)
121
_switch
= new BooleanSwitch(switchName, $"[{name}]");
8 references to _switch
PresentationFramework (8)
MS\Internal\Documents\DocumentsTrace.cs (8)
128
_switch
.Enabled = initialState;
136
if (
_switch
.Enabled)
138
System.Diagnostics.Trace.WriteLine($"{
_switch
.Description} {
_switch
.DisplayName} : {message}");
147
if (
_switch
.Enabled)
188
_switch
.Enabled = true;
196
_switch
.Enabled = false;
205
return
_switch
.Enabled;