Search Results for

    Show / Hide Table of Contents

    Class ReadOnlyListComparer<T>

    An equality comparer for IList that requires elements at the same index to match

    Inheritance
    Object
    ReadOnlyListComparer<T>
    Implements
    IEqualityComparer<IReadOnlyList<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 ReadOnlyListComparer<T> : IEqualityComparer<IReadOnlyList<T>>
    Type Parameters
    Name Description
    T

    Properties

    Default

    Declaration
    public static ReadOnlyListComparer<T> Default { get; }
    Property Value
    Type Description
    ReadOnlyListComparer<T>

    Methods

    EqualLists(IReadOnlyList<T>, IReadOnlyList<T>)

    Declaration
    public static bool EqualLists(IReadOnlyList<T> x, IReadOnlyList<T> y)
    Parameters
    Type Name Description
    IReadOnlyList<T> x
    IReadOnlyList<T> y
    Returns
    Type Description
    Boolean

    Equals(IReadOnlyList<T>, IReadOnlyList<T>)

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

    GetHashCode(IReadOnlyList<T>)

    Declaration
    public static int GetHashCode(IReadOnlyList<T> list)
    Parameters
    Type Name Description
    IReadOnlyList<T> list
    Returns
    Type Description
    Int32

    Explicit Interface Implementations

    IEqualityComparer<IReadOnlyList<T>>.GetHashCode(IReadOnlyList<T>)

    Declaration
    int IEqualityComparer<IReadOnlyList<T>>.GetHashCode(IReadOnlyList<T> list)
    Parameters
    Type Name Description
    IReadOnlyList<T> list
    Returns
    Type Description
    Int32

    Implements

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