Version 2.1.0.0

IndexedDictionary<TKey, TValue> class

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
Not yet documented.
Inheritance
  • System.Object
  • IndexedDictionary<TKey, TValue>

Type Parameters

TKey

TValue

Constructors

IndexedDictionary()
Not yet documented.
public IndexedDictionary()
IndexedDictionary(Int32)
Not yet documented.
public IndexedDictionary(int capacity)
Parameters
System.Int32 capacity

Not yet documented.

Properties

Count
Not yet documented.
public int Count { get; }
IsReadOnly
Not yet documented.
public bool IsReadOnly { get; }
Item[TKey]
Not yet documented.
public TValue this[TKey key] { get; set; }
Parameters
TKey key

Keys
Not yet documented.
public ICollection<TKey> Keys { get; }
Values
Not yet documented.
public ICollection<TValue> Values { get; }

Methods

Add(TKey, TValue)
Not yet documented.
public void Add(TKey key, TValue value)
Parameters
TKey key

TValue value

Add(KeyValuePair<TKey, TValue>)
Not yet documented.
public void Add(KeyValuePair<TKey, TValue> item)
Parameters
System.Collections.Generic.KeyValuePair<TKey, TValue> item

Clear()
Not yet documented.
public void Clear()
Contains(KeyValuePair<TKey, TValue>)
Not yet documented.
public bool Contains(KeyValuePair<TKey, TValue> item)
Parameters
System.Collections.Generic.KeyValuePair<TKey, TValue> item

Returns
System.Boolean

ContainsKey(TKey)
Not yet documented.
public bool ContainsKey(TKey key)
Parameters
TKey key

Returns
System.Boolean

CopyTo(KeyValuePair<TKey, TValue>[], Int32)
Not yet documented.
public void CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)
Parameters
System.Collections.Generic.KeyValuePair<TKey, TValue>[] array

System.Int32 arrayIndex

Get(Int32)
Not yet documented.
public KeyValuePair<TKey, TValue> Get(int index)
Parameters
System.Int32 index

Returns
System.Collections.Generic.KeyValuePair<TKey, TValue>

GetEnumerator()
Not yet documented.
public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<TKey, TValue>>

GetKey(Int32)
Not yet documented.
public TKey GetKey(int index)
Parameters
System.Int32 index

Returns
TKey

GetValue(Int32)
Not yet documented.
public TValue GetValue(int index)
Parameters
System.Int32 index

Returns
TValue

IndexOf(TKey)
Not yet documented.
public int IndexOf(TKey key)
Parameters
TKey key

Returns
System.Int32

Remove(TKey)
Not yet documented.
public bool Remove(TKey key)
Parameters
TKey key

Returns
System.Boolean

Remove(KeyValuePair<TKey, TValue>)
Not yet documented.
public bool Remove(KeyValuePair<TKey, TValue> item)
Parameters
System.Collections.Generic.KeyValuePair<TKey, TValue> item

Returns
System.Boolean

RemoveAt(Int32)
Not yet documented.
public void RemoveAt(int index)
Parameters
System.Int32 index

TryGetValue(TKey, out TValue)
Not yet documented.
public bool TryGetValue(TKey key, out TValue value)
Parameters
TKey key

TValue value

Returns
System.Boolean

Extension Methods

This website is brand new and built with the Odin 2.1 beta in mind. This means you might discover some features such as attribute expressions that are only available in the beta.

You can download the 2.1 beta from here and read the patch-notes here.