Search Results for

    Show / Hide Table of Contents

    Class DictionaryComparer<TKey, TValue>

    An equality comparer that requires the sequence of keys and values to match

    Inheritance
    Object
    EnumerableComparer<KeyValuePair<TKey, TValue>>
    DictionaryComparer<TKey, TValue>
    Implements
    IEqualityComparer<IEnumerable<KeyValuePair<TKey, TValue>>>
    IEqualityComparer<ICollection<KeyValuePair<TKey, TValue>>>
    IEqualityComparer<Dictionary<TKey, TValue>>
    Inherited Members
    EnumerableComparer<KeyValuePair<TKey, TValue>>.Equals(IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>)
    EnumerableComparer<KeyValuePair<TKey, TValue>>.GetHashCode(IEnumerable<KeyValuePair<TKey, TValue>>)
    EnumerableComparer<KeyValuePair<TKey, TValue>>.Equals(ICollection<KeyValuePair<TKey, TValue>>, ICollection<KeyValuePair<TKey, TValue>>)
    EnumerableComparer<KeyValuePair<TKey, TValue>>.GetHashCode(ICollection<KeyValuePair<TKey, TValue>>)
    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 DictionaryComparer<TKey, TValue> : EnumerableComparer<KeyValuePair<TKey, TValue>>, IEqualityComparer<IEnumerable<KeyValuePair<TKey, TValue>>>, IEqualityComparer<ICollection<KeyValuePair<TKey, TValue>>>, IEqualityComparer<Dictionary<TKey, TValue>>
    Type Parameters
    Name Description
    TKey
    TValue

    Methods

    Equals(Dictionary<TKey, TValue>, Dictionary<TKey, TValue>)

    Declaration
    public bool Equals(Dictionary<TKey, TValue> x, Dictionary<TKey, TValue> y)
    Parameters
    Type Name Description
    Dictionary<TKey, TValue> x
    Dictionary<TKey, TValue> y
    Returns
    Type Description
    Boolean

    GetHashCode(Dictionary<TKey, TValue>)

    Declaration
    public int GetHashCode(Dictionary<TKey, TValue> obj)
    Parameters
    Type Name Description
    Dictionary<TKey, TValue> obj
    Returns
    Type Description
    Int32

    Implements

    System.Collections.Generic.IEqualityComparer<T>
    System.Collections.Generic.IEqualityComparer<T>
    System.Collections.Generic.IEqualityComparer<T>
    In This Article
    Back to top Copyright © .NET Foundation. All rights reserved.