Search Results for

    Show / Hide Table of Contents

    Struct ReadOnlySlice<T>

    A slice of a read-only list.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Flame.Collections
    Assembly: Flame.dll
    Syntax
    public struct ReadOnlySlice<T>
    Type Parameters
    Name Description
    T

    Constructors

    | Edit this page View Source

    ReadOnlySlice(IReadOnlyList<T>)

    Creates a read-only slice of a list that contains the entire list.

    Declaration
    public ReadOnlySlice(IReadOnlyList<T> list)
    Parameters
    Type Name Description
    IReadOnlyList<T> list

    The list to "slice."

    | Edit this page View Source

    ReadOnlySlice(IReadOnlyList<T>, int, int)

    Creates a read-only slice of a list.

    Declaration
    public ReadOnlySlice(IReadOnlyList<T> list, int offset, int count)
    Parameters
    Type Name Description
    IReadOnlyList<T> list

    The list to slice.

    int offset

    The offset in the list of the first element in the slice.

    int count

    The number of elements in the slice.

    Properties

    | Edit this page View Source

    Count

    Declaration
    public readonly int Count { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    this[int]

    Declaration
    public T this[int index] { get; }
    Parameters
    Type Name Description
    int index
    Property Value
    Type Description
    T

    Methods

    | Edit this page View Source

    ToArray()

    Creates an array whose elements are the same as this slice's.

    Declaration
    public T[] ToArray()
    Returns
    Type Description
    T[]

    An array.

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX