Show / Hide Table of Contents

    Class SetComparer<T>

    Compares two sets (unordered collections without duplicates) for equality.

    Inheritance
    System.Object
    SetComparer<T>
    Implements
    System.Collections.Generic.IEqualityComparer<System.Collections.Generic.IEnumerable<T>>
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Virtlink.Utilib.Collections
    Assembly: Virtlink.Utilib.dll
    Syntax
    public sealed class SetComparer<T> : IEqualityComparer<IEnumerable<T>>
    Type Parameters
    Name Description
    T

    The type of elements in the sets.

    Constructors

    | Improve this Doc View Source

    SetComparer()

    Initializes a new instance of the SetComparer<T> class.

    Declaration
    public SetComparer()
    | Improve this Doc View Source

    SetComparer(IEqualityComparer<T>)

    Initializes a new instance of the SetComparer<T> class.

    Declaration
    public SetComparer(IEqualityComparer<T> elementComparer)
    Parameters
    Type Name Description
    System.Collections.Generic.IEqualityComparer<T> elementComparer

    The comparer used to compare elements.

    Properties

    | Improve this Doc View Source

    Default

    Gets the default instance of the SetComparer<T>.

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

    The default instance of the SetComparer<T> class for type T.

    Methods

    | Improve this Doc View Source

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

    Declaration
    public bool Equals(IEnumerable<T> x, IEnumerable<T> y)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<T> x
    System.Collections.Generic.IEnumerable<T> y
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    GetHashCode(IEnumerable<T>)

    Declaration
    public int GetHashCode(IEnumerable<T> enumerable)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<T> enumerable
    Returns
    Type Description
    System.Int32

    Implements

    System.Collections.Generic.IEqualityComparer<T>
    • Improve this Doc
    • View Source
    Back to top Copyright - Daniel Pelsmaeker