SuperLinq SuperLinq
SuperLinq SuperLinq
DocFX + Singulink = ♥

Search Results for

    Method Create

    Create<T1>(IEqualityComparer<T1>?)

    Creates a custom IEqualityComparer<T> for a ValueTuple<T1> based on custom comparers for each component.

    Declaration
    public static IEqualityComparer<ValueTuple<T1>> Create<T1>(IEqualityComparer<T1>? comparer1)
    Parameters
    Type Name Description
    IEqualityComparer<T1> comparer1

    The custom comparer for T1. If null, then Default will be used.

    Returns
    Type Description
    IEqualityComparer<ValueTuple<T1>>

    An IEqualityComparer<T> that can be used to compare two ValueTuple<T1> using the provided comparers for each component.

    Type Parameters
    Name Description
    T1

    The type of the first element of the ValueTuple<T1>

    Create<T1, T2>(IEqualityComparer<T1>?, IEqualityComparer<T2>?)

    Creates a custom IEqualityComparer<T> for a (T1, T2) based on custom comparers for each component.

    Declaration
    public static IEqualityComparer<(T1, T2)> Create<T1, T2>(IEqualityComparer<T1>? comparer1, IEqualityComparer<T2>? comparer2)
    Parameters
    Type Name Description
    IEqualityComparer<T1> comparer1

    The custom comparer for T1. If null, then Default will be used.

    IEqualityComparer<T2> comparer2

    The custom comparer for T2. If null, then Default will be used.

    Returns
    Type Description
    IEqualityComparer<(T1, T2)>

    An IEqualityComparer<T> that can be used to compare two (T1, T2) using the provided comparers for each component.

    Type Parameters
    Name Description
    T1

    The type of the first element of the (T1, T2)

    T2

    The type of the second element of the (T1, T2)

    © SuperLinq Authors. All rights reserved.