Namespace: | Sirenix.Utilities |
Assembly: | Sirenix.Utilities |
public class IndexedDictionary<TKey, TValue> : IDictionary<TKey, TValue>, ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, IDictionary, ICollection, IEnumerable
public IndexedDictionary()
public IndexedDictionary(int capacity)
System.Int32 | capacity | Not yet documented. |
public int Count { get; }
public bool IsReadOnly { get; }
public TValue this[TKey key] { get; set; }
TKey | key |
public ICollection<TKey> Keys { get; }
public ICollection<TValue> Values { get; }
public void Add(TKey key, TValue value)
TKey | key | |
TValue | value |
public void Add(KeyValuePair<TKey, TValue> item)
System.Collections.Generic.KeyValuePair<TKey, TValue> | item |
public void Clear()
public bool Contains(KeyValuePair<TKey, TValue> item)
System.Collections.Generic.KeyValuePair<TKey, TValue> | item |
System.Boolean |
public bool ContainsKey(TKey key)
TKey | key |
System.Boolean |
public void CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
System.Collections.Generic.KeyValuePair<TKey, TValue>[] | array | |
System.Int32 | arrayIndex |
public KeyValuePair<TKey, TValue> Get(int index)
System.Int32 | index |
System.Collections.Generic.KeyValuePair<TKey, TValue> |
public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator()
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<TKey, TValue>> |
public TKey GetKey(int index)
System.Int32 | index |
TKey |
public TValue GetValue(int index)
System.Int32 | index |
TValue |
public int IndexOf(TKey key)
TKey | key |
System.Int32 |
public bool Remove(TKey key)
TKey | key |
System.Boolean |
public bool Remove(KeyValuePair<TKey, TValue> item)
System.Collections.Generic.KeyValuePair<TKey, TValue> | item |
System.Boolean |
public void RemoveAt(int index)
System.Int32 | index |
public bool TryGetValue(TKey key, out TValue value)
TKey | key | |
TValue | value |
System.Boolean |