Search Results for

    Show / Hide Table of Contents

    Class GenerationalDictionary<TKey, TValue>

    Hash table implementation that has a constant-time Clear() operation.

    Inheritance
    Object
    GenerationalDictionary<TKey, TValue>
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Microsoft.ML.Probabilistic.Collections
    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
    Type Description
    Int32

    Item[TKey]

    Declaration
    public TValue this[TKey key] { get; }
    Parameters
    Type Name Description
    TKey key
    Property Value
    Type Description
    TValue

    Methods

    Add(TKey, TValue)

    Declaration
    public void Add(TKey key, TValue value)
    Parameters
    Type Name Description
    TKey key
    TValue value

    Clear()

    Declaration
    public void Clear()

    TryGetValue(TKey, out TValue)

    Declaration
    public bool TryGetValue(TKey key, out TValue value)
    Parameters
    Type Name Description
    TKey key
    TValue value
    Returns
    Type Description
    Boolean

    Update(TKey, TValue)

    Declaration
    public void Update(TKey key, TValue value)
    Parameters
    Type Name Description
    TKey key
    TValue value
    In This Article
    Back to top Copyright © .NET Foundation. All rights reserved.