Terraria v1.4.4.9
Terraria source code documentation
|
Public Member Functions | |
bool | Contains (TKey key) |
bool | TryGetValue (TKey key, [MaybeNullWhen(false)] out TItem item) |
bool | Remove (TKey key) |
void | Add (T item) |
void | Clear () |
void | CopyTo (T[] array, int index) |
bool | Contains (T item) |
IEnumerator< T > | GetEnumerator () |
int | IndexOf (T item) |
void | Insert (int index, T item) |
bool | Remove (T item) |
void | RemoveAt (int index) |
Protected Member Functions | |
KeyedCollection () | |
KeyedCollection (IEqualityComparer< TKey >? comparer) | |
KeyedCollection (IEqualityComparer< TKey >? comparer, int dictionaryCreationThreshold) | |
void | ChangeItemKey (TItem item, TKey newKey) |
override void | ClearItems () |
TKey | GetKeyForItem (TItem item) |
override void | InsertItem (int index, TItem item) |
override void | RemoveItem (int index) |
override void | SetItem (int index, TItem item) |
virtual void | InsertItem (int index, T item) |
virtual void | SetItem (int index, T item) |
Properties | |
new List< TItem > | Items [get] |
IEqualityComparer< TKey > | Comparer [get] |
TItem | this[TKey key] [get] |
IDictionary< TKey, TItem >? | Dictionary [get] |
int | Count [get] |
T | this[int index] [get, set] |
object? IList. | this[int index] [get, set] |
bool ICollection< T >. | IsReadOnly [get] |
bool IList. | IsReadOnly [get] |
bool ICollection. | IsSynchronized [get] |
object ICollection. | SyncRoot [get] |
bool IList. | IsFixedSize [get] |
Private Member Functions | |
bool | ContainsItem (TItem item) |
void | AddKey (TKey key, TItem item) |
void | CreateDictionary () |
void | RemoveKey (TKey key) |
int IList. | Add (object value) |
void ICollection. | CopyTo (Array array, int index) |
IEnumerator IEnumerable. | GetEnumerator () |
int IList. | IndexOf (object value) |
void IList. | Insert (int index, object value) |
Static Private Member Functions | |
static bool | IsCompatibleObject (object value) |
Private Attributes | |
readonly IEqualityComparer< TKey > | comparer |
Dictionary< TKey, TItem > | dict |
int | keyCount |
readonly int | threshold |
readonly IList< T > | items |
TKey | : | notnull |
Definition at line 12 of file KeyedCollection.cs.