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

◆ TryRemove< TKey, TValue >()

static bool System.Collections.Immutable.ImmutableInterlocked.TryRemove< TKey, TValue > ( ref ImmutableDictionary< TKey, TValue > location,
TKey key,
[MaybeNullWhen(false)] out TValue value )
inlinestatic
Type Constraints
TKey :notnull 

Definition at line 239 of file ImmutableInterlocked.cs.

239 : notnull
240 {
242 bool flag;
243 do
244 {
245 Requires.NotNull(immutableDictionary, "location");
247 {
248 return false;
249 }
254 }
255 while (!flag);
256 return true;
257 }
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
static int CompareExchange(ref int location1, int value, int comparand)
static bool Read(ref bool location)
Definition Volatile.cs:67

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