Show / Hide Table of Contents

    Class MultiSetComparer<T>

    Compares two multi-sets (unordered collections which may contain duplicates) for equality.

    Inheritance
    System.Object
    MultiSetComparer<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 MultiSetComparer<T> : IEqualityComparer<IEnumerable<T>>
    Type Parameters
    Name Description
    T

    The type of elements in the sets.

    Constructors

    | Improve this Doc View Source

    MultiSetComparer()

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

    Declaration
    public MultiSetComparer()
    | Improve this Doc View Source

    MultiSetComparer(IEqualityComparer<T>)

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

    Declaration
    public MultiSetComparer(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 MultiSetComparer<T>.

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

    The default instance of the MultiSetComparer<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
    In This Article
    • Constructors
      • MultiSetComparer()
      • MultiSetComparer(IEqualityComparer<T>)
    • Properties
      • Default
    • Methods
      • Equals(IEnumerable<T>, IEnumerable<T>)
      • GetHashCode(IEnumerable<T>)
    • Implements
    Back to top Copyright - Daniel Pelsmaeker