Class GenerationalDictionary<TKey, TValue>
Hash table implementation that has a constant-time Clear() operation.
Inheritance
GenerationalDictionary<TKey, TValue>
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
public class GenerationalDictionary<TKey, TValue>
where TKey : IEquatable<TKey> where TValue : struct
Type Parameters
Name |
Description |
TKey |
|
TValue |
|
Constructors
GenerationalDictionary()
Declaration
public GenerationalDictionary()
Properties
Count
Declaration
public int Count { get; }
Property Value
Item[TKey]
Declaration
public TValue this[TKey key] { get; }
Parameters
Type |
Name |
Description |
TKey |
key |
|
Property Value
Methods
Add(TKey, TValue)
Declaration
public void Add(TKey key, TValue value)
Parameters
Type |
Name |
Description |
TKey |
key |
|
TValue |
value |
|
Clear()
Declaration
TryGetValue(TKey, out TValue)
Declaration
public bool TryGetValue(TKey key, out TValue value)
Parameters
Type |
Name |
Description |
TKey |
key |
|
TValue |
value |
|
Returns
Update(TKey, TValue)
Declaration
public void Update(TKey key, TValue value)
Parameters
Type |
Name |
Description |
TKey |
key |
|
TValue |
value |
|