Search Results for

    Show / Hide Table of Contents

    Class EnumerableComparer<T>

    An equality comparer for IEnumerable that requires elements at the same position to match

    Inheritance
    Object
    EnumerableComparer<T>
    DictionaryComparer<TKey, TValue>
    Implements
    IEqualityComparer<IEnumerable<T>>
    IEqualityComparer<ICollection<T>>
    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 EnumerableComparer<T> : IEqualityComparer<IEnumerable<T>>, IEqualityComparer<ICollection<T>>
    Type Parameters
    Name Description
    T

    Methods

    Equals(ICollection<T>, ICollection<T>)

    Declaration
    public bool Equals(ICollection<T> x, ICollection<T> y)
    Parameters
    Type Name Description
    ICollection<T> x
    ICollection<T> y
    Returns
    Type Description
    Boolean

    Equals(IEnumerable<T>, IEnumerable<T>)

    Declaration
    public bool Equals(IEnumerable<T> x, IEnumerable<T> y)
    Parameters
    Type Name Description
    IEnumerable<T> x
    IEnumerable<T> y
    Returns
    Type Description
    Boolean

    GetHashCode(ICollection<T>)

    Declaration
    public int GetHashCode(ICollection<T> obj)
    Parameters
    Type Name Description
    ICollection<T> obj
    Returns
    Type Description
    Int32

    GetHashCode(IEnumerable<T>)

    Declaration
    public int GetHashCode(IEnumerable<T> obj)
    Parameters
    Type Name Description
    IEnumerable<T> obj
    Returns
    Type Description
    Int32

    Implements

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