Collections Collections
Collections Collections
DocFX + Singulink = ♥

Search Results for

    Method ToComparerEquatableArray

    ToComparerEquatableArray<T>(ImmutableArray<T>, IEqualityComparer<T>?)

    Returns an instance of the ComparerEquatableArray<T> class from the given collection with the specified comparer.

    Declaration
    public static ComparerEquatableArray<T> ToComparerEquatableArray<T>(this ImmutableArray<T> value, IEqualityComparer<T>? comparer = null)
    Parameters
    Type Name Description
    ImmutableArray<T> value
    IEqualityComparer<T> comparer
    Returns
    Type Description
    ComparerEquatableArray<T>
    Type Parameters
    Name Description
    T
    Remarks

    Note: values of the collection are assumed to be immutable and interchangeable (that is, the standard equality and hash code contracts must be held, but also must be consistent indefinitely, and the value you read out of the array is only guaranteed to be equal to the one passed in, not necessarily the same instance or bits).

    Note: the values for the comparer are compared by reference equality, but with null considered equivalent to Default.

    ToComparerEquatableArray<T>(IEnumerable<T>, IEqualityComparer<T>?)

    Returns an instance of the ComparerEquatableArray<T> class from the given collection with the specified comparer.

    Declaration
    public static ComparerEquatableArray<T> ToComparerEquatableArray<T>(this IEnumerable<T> value, IEqualityComparer<T>? comparer = null)
    Parameters
    Type Name Description
    IEnumerable<T> value
    IEqualityComparer<T> comparer
    Returns
    Type Description
    ComparerEquatableArray<T>
    Type Parameters
    Name Description
    T
    Remarks

    Note: values of the collection are assumed to be immutable and interchangeable (that is, the standard equality and hash code contracts must be held, but also must be consistent indefinitely, and the value you read out of the array is only guaranteed to be equal to the one passed in, not necessarily the same instance or bits).

    Note: the values for the comparer are compared by reference equality, but with null considered equivalent to Default.

    ToComparerEquatableArray<T>(ReadOnlySpan<T>, IEqualityComparer<T>?)

    Returns an instance of the ComparerEquatableArray<T> class from the given collection with the specified comparer.

    Declaration
    public static ComparerEquatableArray<T> ToComparerEquatableArray<T>(this ReadOnlySpan<T> value, IEqualityComparer<T>? comparer = null)
    Parameters
    Type Name Description
    ReadOnlySpan<T> value
    IEqualityComparer<T> comparer
    Returns
    Type Description
    ComparerEquatableArray<T>
    Type Parameters
    Name Description
    T
    Remarks

    Note: values of the collection are assumed to be immutable and interchangeable (that is, the standard equality and hash code contracts must be held, but also must be consistent indefinitely, and the value you read out of the array is only guaranteed to be equal to the one passed in, not necessarily the same instance or bits).

    Note: the values for the comparer are compared by reference equality, but with null considered equivalent to Default.

    ToComparerEquatableArray<T>(T[], IEqualityComparer<T>?)

    Returns an instance of the ComparerEquatableArray<T> class from the given collection with the specified comparer.

    Declaration
    public static ComparerEquatableArray<T> ToComparerEquatableArray<T>(this T[] value, IEqualityComparer<T>? comparer = null)
    Parameters
    Type Name Description
    T[] value
    IEqualityComparer<T> comparer
    Returns
    Type Description
    ComparerEquatableArray<T>
    Type Parameters
    Name Description
    T
    Remarks

    Note: values of the collection are assumed to be immutable and interchangeable (that is, the standard equality and hash code contracts must be held, but also must be consistent indefinitely, and the value you read out of the array is only guaranteed to be equal to the one passed in, not necessarily the same instance or bits).

    Note: the values for the comparer are compared by reference equality, but with null considered equivalent to Default.

    © Singulink. All rights reserved.