Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Collections.Generic.Dictionary< TKey, TValue > Class Template Reference

Classes

class  CollectionsMarshalHelper
 
struct  Entry
 
struct  Enumerator
 
class  KeyCollection
 
class  ValueCollection
 

Public Member Functions

 Dictionary ()
 
 Dictionary (int capacity)
 
 Dictionary (IEqualityComparer< TKey >? comparer)
 
 Dictionary (int capacity, IEqualityComparer< TKey >? comparer)
 
 Dictionary (IDictionary< TKey, TValue > dictionary)
 
 Dictionary (IDictionary< TKey, TValue > dictionary, IEqualityComparer< TKey >? comparer)
 
 Dictionary (IEnumerable< KeyValuePair< TKey, TValue > > collection)
 
 Dictionary (IEnumerable< KeyValuePair< TKey, TValue > > collection, IEqualityComparer< TKey >? comparer)
 
void Add (TKey key, TValue value)
 
void Clear ()
 
bool ContainsKey (TKey key)
 
bool ContainsValue (TValue value)
 
Enumerator GetEnumerator ()
 
virtual void GetObjectData (SerializationInfo info, StreamingContext context)
 
virtual void OnDeserialization (object? sender)
 
bool Remove (TKey key)
 
bool Remove (TKey key, [MaybeNullWhen(false)] out TValue value)
 
bool TryGetValue (TKey key, [MaybeNullWhen(false)] out TValue value)
 
bool TryAdd (TKey key, TValue value)
 
int EnsureCapacity (int capacity)
 
void TrimExcess ()
 
void TrimExcess (int capacity)
 
void Add (T item)
 
bool Remove (T item)
 
bool Contains (T item)
 
void CopyTo (T[] array, int arrayIndex)
 

Protected Member Functions

 Dictionary (SerializationInfo info, StreamingContext context)
 

Package Functions

ref TValue FindValue (TKey key)
 

Properties

IEqualityComparer< TKey > Comparer [get]
 
int Count [get]
 
KeyCollection Keys [get]
 
ICollection< TKey > IDictionary< TKey, TValue >. Keys [get]
 
IEnumerable< TKey > IReadOnlyDictionary< TKey, TValue >. Keys [get]
 
ValueCollection Values [get]
 
ICollection< TValue > IDictionary< TKey, TValue >. Values [get]
 
IEnumerable< TValue > IReadOnlyDictionary< TKey, TValue >. Values [get]
 
TValue this[TKey key] [get, set]
 
bool ICollection< KeyValuePair< TKey, TValue > >. IsReadOnly [get]
 
bool ICollection. IsSynchronized [get]
 
object ICollection. SyncRoot [get]
 
bool IDictionary. IsFixedSize [get]
 
bool IDictionary. IsReadOnly [get]
 
ICollection IDictionary. Keys [get]
 
ICollection IDictionary. Values [get]
 
object? IDictionary. this[object key] [get, set]
 

Private Member Functions

void AddRange (IEnumerable< KeyValuePair< TKey, TValue > > collection)
 
void ICollection< KeyValuePair< TKey, TValue > >. Add (KeyValuePair< TKey, TValue > keyValuePair)
 
bool ICollection< KeyValuePair< TKey, TValue > >. Contains (KeyValuePair< TKey, TValue > keyValuePair)
 
bool ICollection< KeyValuePair< TKey, TValue > >. Remove (KeyValuePair< TKey, TValue > keyValuePair)
 
void CopyTo (KeyValuePair< TKey, TValue >[] array, int index)
 
IEnumerator< KeyValuePair< TKey, TValue > > IEnumerable< KeyValuePair< TKey, TValue > >. GetEnumerator ()
 
int Initialize (int capacity)
 
bool TryInsert (TKey key, TValue value, InsertionBehavior behavior)
 
void Resize ()
 
void Resize (int newSize, bool forceNewHashCodes)
 
void ICollection< KeyValuePair< TKey, TValue > >. CopyTo (KeyValuePair< TKey, TValue >[] array, int index)
 
void ICollection. CopyTo (Array array, int index)
 
IEnumerator IEnumerable. GetEnumerator ()
 
void CopyEntries (Entry[] entries, int count)
 
void IDictionary. Add (object key, object value)
 
bool IDictionary. Contains (object key)
 
IDictionaryEnumerator IDictionary. GetEnumerator ()
 
void IDictionary. Remove (object key)
 
ref int GetBucket (uint hashCode)
 

Static Private Member Functions

static bool IsCompatibleKey (object key)
 

Private Attributes

int[] _buckets
 
Entry[] _entries
 
ulong _fastModMultiplier
 
int _count
 
int _freeList
 
int _freeCount
 
int _version
 
IEqualityComparer< TKey > _comparer
 
KeyCollection _keys
 
ValueCollection _values
 

Detailed Description

Type Constraints
TKey :notnull 

Definition at line 13 of file Dictionary.cs.


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