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

◆ SetData()

static void System.AppContext.SetData ( string name,
object? data )
inlinestatic

Definition at line 48 of file AppContext.cs.

49 {
50 if (name == null)
51 {
52 throw new ArgumentNullException("name");
53 }
54 if (s_dataStore == null)
55 {
57 }
59 {
60 s_dataStore[name] = data;
61 }
62 }
static Dictionary< string, object > s_dataStore
Definition AppContext.cs:15
static int CompareExchange(ref int location1, int value, int comparand)

References System.Threading.Interlocked.CompareExchange(), and System.AppContext.s_dataStore.

Referenced by System.Threading.ThreadPool.InitializeConfigAndDetermineUsePortableThreadPool(), and System.AppDomain.SetData().