Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Runtime.CompilerServices.ConditionalWeakTable< TKey, TValue > Class Template Referencesealed

Classes

class  Container
 
struct  Entry
 
class  Enumerator
 

Public Member Functions

delegate TValue CreateValueCallback (TKey key)
 
 ConditionalWeakTable ()
 
bool TryGetValue (TKey key, [MaybeNullWhen(false)] out TValue value)
 
void Add (TKey key, TValue value)
 
void AddOrUpdate (TKey key, TValue value)
 
bool Remove (TKey key)
 
void Clear ()
 
TValue GetValue (TKey key, CreateValueCallback createValueCallback)
 
TValue GetOrCreateValue (TKey key)
 

Private Member Functions

TValue GetValueLocked (TKey key, CreateValueCallback createValueCallback)
 
IEnumerator< KeyValuePair< TKey, TValue > > IEnumerable< KeyValuePair< TKey, TValue > >. GetEnumerator ()
 
IEnumerator IEnumerable. GetEnumerator ()
 
void CreateEntry (TKey key, TValue value)
 

Private Attributes

readonly object _lock
 
volatile Container _container
 
int _activeEnumeratorRefCount
 

Detailed Description

Type Constraints
TKey :class 
TValue :class 

Definition at line 9 of file ConditionalWeakTable.cs.


The documentation for this class was generated from the following file: