Collections Collections
Collections Collections
DocFX + Singulink = ♥

Search Results for

    Method Create

    Create<T>(ImmutableArray<T>)

    Returns an instance of the EquatableArray<T> class from the given collection.

    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

    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).

    Create<T>(IEnumerable<T>)

    Returns an instance of the EquatableArray<T> class from the given collection.

    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

    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).

    Create<T>(params ReadOnlySpan<T>)

    Returns an instance of the EquatableArray<T> class from the given collection.

    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

    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).

    Create<T>(params T[])

    Returns an instance of the EquatableArray<T> class from the given collection.

    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

    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).

    © Singulink. All rights reserved.