1 write to _switchName
System.Private.Windows.Core.TestUtilities (1)
AppContextSwitchScope.cs (1)
48_switchName = switchName;
3 references to _switchName
System.Private.Windows.Core.TestUtilities (3)
AppContextSwitchScope.cs (3)
53AppContext.SetSwitch(_switchName, _originalState); 54if (!AppContext.TryGetSwitch(_switchName, out bool isEnabled) || isEnabled != _originalState) 56throw new InvalidOperationException($"Could not reset {_switchName} to {_originalState}.");