Class SortedValueMap<K, V>
public class SortedValueMap<K, V>
Type Parameters
K
V
- Inheritance
-
SortedValueMap<K, V>
Constructors
SortedValueMap(IComparer<V>)
public SortedValueMap(IComparer<V> comparer)
Parameters
comparer
IComparer<V>
SortedValueMap(IComparer<V>, IDictionary<K, V>)
public SortedValueMap(IComparer<V> comparer, IDictionary<K, V> data)
Parameters
comparer
IComparer<V>data
IDictionary<K, V>
SortedValueMap(IComparer<V>, int)
public SortedValueMap(IComparer<V> comparer, int capacity)
Parameters
Properties
Count
public int Count { get; }
Property Value
IsReadOnly
public bool IsReadOnly { get; }
Property Value
this[K]
public V this[K key] { get; set; }
Parameters
key
K
Property Value
- V
Keys
public ICollection<K> Keys { get; }
Property Value
- ICollection<K>
SortedValues
public IReadOnlyList<V> SortedValues { get; }
Property Value
Methods
Add(KeyValuePair<K, V>)
public void Add(KeyValuePair<K, V> item)
Parameters
item
KeyValuePair<K, V>
Add(K, V)
public void Add(K key, V value)
Parameters
key
Kvalue
V
Clear()
public void Clear()
Contains(KeyValuePair<K, V>)
public bool Contains(KeyValuePair<K, V> item)
Parameters
item
KeyValuePair<K, V>
Returns
ContainsKey(K)
public bool ContainsKey(K key)
Parameters
key
K
Returns
CopyTo(KeyValuePair<K, V>[], int)
public void CopyTo(KeyValuePair<K, V>[] array, int arrayIndex)
Parameters
array
KeyValuePair<K, V>[]arrayIndex
int
GetEnumerator()
Get enumerator for unsorted KeyValuePair's
public Dictionary<K, V>.Enumerator GetEnumerator()
Returns
- Dictionary<K, V>.Enumerator
Remove(KeyValuePair<K, V>)
public bool Remove(KeyValuePair<K, V> item)
Parameters
item
KeyValuePair<K, V>
Returns
Remove(K)
public bool Remove(K key)
Parameters
key
K
Returns
TryGetValue(K, out V)
public bool TryGetValue(K key, out V value)
Parameters
key
Kvalue
V