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

◆ TryAdd< TKey, TValue >()

static bool System.Collections.Immutable.ImmutableInterlocked.TryAdd< TKey, TValue > ( ref ImmutableDictionary< TKey, TValue > location,
TKey key,
TValue value )
inlinestatic
Type Constraints
TKey :notnull 

Definition at line 198 of file ImmutableInterlocked.cs.

References System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Threading.Interlocked.CompareExchange(), System.Collections.Generic.Dictionary< TKey, TValue >.ContainsKey(), System.key, System.Threading.Volatile.Read(), and System.value.