Collections Collections
Collections Collections
DocFX + Singulink = ♥

Search Results for

    Method Create

    Create<T>(ImmutableArray<T>)

    Returns an EquatableArray<T> containing the specified items.

    Declaration
    public static EquatableArray<T> Create<T>(ImmutableArray<T> items)
    Parameters
    Type Name Description
    ImmutableArray<T> items
    Returns
    Type Description
    EquatableArray<T>
    Type Parameters
    Name Description
    T
    Remarks

    The values in the array are assumed to be immutable and interchangeable. Equal values must stay equal and keep the same hash code indefinitely, and a value read from the array is only guaranteed to be equal to the one that was passed in, not to be the same instance.

    Create<T>(IEnumerable<T>)

    Returns an EquatableArray<T> containing the specified items.

    Declaration
    public static EquatableArray<T> Create<T>(IEnumerable<T> items)
    Parameters
    Type Name Description
    IEnumerable<T> items
    Returns
    Type Description
    EquatableArray<T>
    Type Parameters
    Name Description
    T
    Remarks

    The values in the array are assumed to be immutable and interchangeable. Equal values must stay equal and keep the same hash code indefinitely, and a value read from the array is only guaranteed to be equal to the one that was passed in, not to be the same instance.

    Create<T>(params ReadOnlySpan<T>)

    Returns an EquatableArray<T> containing the specified items.

    Declaration
    public static EquatableArray<T> Create<T>(params ReadOnlySpan<T> items)
    Parameters
    Type Name Description
    ReadOnlySpan<T> items
    Returns
    Type Description
    EquatableArray<T>
    Type Parameters
    Name Description
    T
    Remarks

    The values in the array are assumed to be immutable and interchangeable. Equal values must stay equal and keep the same hash code indefinitely, and a value read from the array is only guaranteed to be equal to the one that was passed in, not to be the same instance.

    Create<T>(params T[])

    Returns an EquatableArray<T> containing the specified items.

    Declaration
    public static EquatableArray<T> Create<T>(params T[] items)
    Parameters
    Type Name Description
    T[] items
    Returns
    Type Description
    EquatableArray<T>
    Type Parameters
    Name Description
    T
    Remarks

    The values in the array are assumed to be immutable and interchangeable. Equal values must stay equal and keep the same hash code indefinitely, and a value read from the array is only guaranteed to be equal to the one that was passed in, not to be the same instance.

    © Singulink. All rights reserved.