Class ReferenceDictionary<TKey, TValue>
A dictionary, based on a List is faster and with smaller footprint for several items - e.g. 2 to 9. In .NET there is the HybridDictionary class which actually uses LinkedList for up to 9 items.
Inheritance
Inherited Members
Namespace: Telerik.Charting
Assembly: Telerik.WinControls.dll
Syntax
public class ReferenceDictionary<TKey, TValue>
where TKey : class
Type Parameters
TKey
|
TValue
|
Constructors
ReferenceDictionary()
Declaration
public ReferenceDictionary()
Properties
Count
Declaration
public int Count { get; }
Property Value
System.Int32
|
Item[TKey]
Declaration
public TValue this[TKey key] { get; }
Parameters
TKey
key
|
Property Value
TValue
|
Methods
Clear()
Declaration
public void Clear()
ContainsKey(TKey)
Declaration
public bool ContainsKey(TKey key)
Parameters
TKey
key
|
Returns
System.Boolean
|
EnumerateKeys()
Declaration
public IEnumerable<TKey> EnumerateKeys()
Returns
System.Collections.Generic.IEnumerable<TKey>
|
EnumerateValues()
Declaration
public IEnumerable<TValue> EnumerateValues()
Returns
System.Collections.Generic.IEnumerable<TValue>
|
Remove(TKey)
Declaration
public void Remove(TKey key)
Parameters
TKey
key
|
Set(TKey, TValue)
Declaration
public void Set(TKey key, TValue value)
Parameters
TKey
key
|
TValue
value
|
TryGetValue(TKey, out TValue)
Declaration
public bool TryGetValue(TKey key, out TValue value)
Parameters
TKey
key
|
TValue
value
|
Returns
System.Boolean
|