Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ SetSwitch()

static void System.AppContext.SetSwitch ( string switchName,
bool isEnabled )
inlinestatic

Definition at line 102 of file AppContext.cs.

103 {
104 if (switchName == null)
105 {
106 throw new ArgumentNullException("switchName");
107 }
108 if (switchName.Length == 0)
109 {
110 throw new ArgumentException(SR.Argument_EmptyName, "switchName");
111 }
112 if (s_switches == null)
113 {
115 }
117 {
119 }
120 }
static Dictionary< string, bool > s_switches
Definition AppContext.cs:17
static int CompareExchange(ref int location1, int value, int comparand)

References System.SR.Argument_EmptyName, System.Threading.Interlocked.CompareExchange(), and System.AppContext.s_switches.

Referenced by System.Threading.ThreadPool.InitializeConfigAndDetermineUsePortableThreadPool().