Show / Hide Table of Contents

    Class ArrayFiller<TElement, TReturnConstant>

    Represents TElement[] array filler with additional methods that return a given constant of type .

    Представляет заполнитель массива TElement[] c дополнительными методами, возвращающими заданную константу типа .

    Inheritance
    Object
    ArrayFiller<TElement>
    ArrayFiller<TElement, TReturnConstant>
    Inherited Members
    ArrayFiller<TElement>._array
    ArrayFiller<TElement>._position
    ArrayFiller<TElement>.Add(TElement)
    ArrayFiller<TElement>.AddAndReturnTrue(TElement)
    ArrayFiller<TElement>.AddFirstAndReturnTrue(IList<TElement>)
    ArrayFiller<TElement>.AddAllAndReturnTrue(IList<TElement>)
    ArrayFiller<TElement>.AddSkipFirstAndReturnTrue(IList<TElement>)
    Namespace: Platform.Collections.Arrays
    Assembly: Platform.Collections.dll
    Syntax
    public class ArrayFiller<TElement, TReturnConstant> : ArrayFiller<TElement>
    Type Parameters
    Name Description
    TElement

    The elements' type.

    Тип элементов массива.

    TReturnConstant

    The return constant's type.

    Тип возвращаемой константы.

    Constructors

    | Improve this Doc View Source

    ArrayFiller(TElement[], TReturnConstant)

    Initializes a new instance of the class using the specified array and the constant returned when elements are being filled. Filling will start from the beginning of the array.

    Инициализирует новый экземпляр класса , используя указанный массив и константу возвращаемую при заполнении элементов. Заполнение начнётся с начала массива.

    Declaration
    public ArrayFiller(TElement[] array, TReturnConstant returnConstant)
    Parameters
    Type Name Description
    TElement[] array

    The array to fill.

    Массив для заполнения.

    TReturnConstant returnConstant

    The constant's value.

    Значение константы.

    | Improve this Doc View Source

    ArrayFiller(TElement[], Int64, TReturnConstant)

    Initializes a new instance of the class using the specified array, the offset from which filling will start and the constant returned when elements are being filled.

    Инициализирует новый экземпляр класса , используя указанный массив, смещение с которого начнётся заполнение и константу возвращаемую при заполнении элементов.

    Declaration
    public ArrayFiller(TElement[] array, long offset, TReturnConstant returnConstant)
    Parameters
    Type Name Description
    TElement[] array

    The array to fill.

    Массив для заполнения.

    Int64 offset

    The offset from which to start the array filling.

    Смещение с которого начнётся заполнение массива.

    TReturnConstant returnConstant

    The constant's value.

    Значение константы.

    Fields

    | Improve this Doc View Source

    _returnConstant

    The return constant.

    Declaration
    protected readonly TReturnConstant _returnConstant
    Field Value
    Type Description
    TReturnConstant

    Methods

    | Improve this Doc View Source

    AddAllAndReturnConstant(IList<TElement>)

    Adds all elements from the specified list to the filled array and returns the constant.

    Добавляет все элементы из указанного списка в заполняемый массив и возвращает константу.

    Declaration
    public TReturnConstant AddAllAndReturnConstant(IList<TElement> elements)
    Parameters
    Type Name Description
    IList<TElement> elements

    The list of values to add.

    Список значений для добавления.

    Returns
    Type Description
    TReturnConstant

    The constant's value.

    Значение константы.

    | Improve this Doc View Source

    AddAndReturnConstant(TElement)

    Adds an item into the array and returns the constant.

    Добавляет элемент в массив и возвращает константу.

    Declaration
    public TReturnConstant AddAndReturnConstant(TElement element)
    Parameters
    Type Name Description
    TElement element

    The element to add.

    Добавляемый элемент.

    Returns
    Type Description
    TReturnConstant

    The constant's value.

    Значение константы.

    | Improve this Doc View Source

    AddFirstAndReturnConstant(IList<TElement>)

    Adds the first element from the specified list to the filled array and returns the constant.

    Добавляет первый элемент из указанного списка в заполняемый массив и возвращает константу.

    Declaration
    public TReturnConstant AddFirstAndReturnConstant(IList<TElement> elements)
    Parameters
    Type Name Description
    IList<TElement> elements
    Returns
    Type Description
    TReturnConstant

    The constant's value.

    Значение константы.

    | Improve this Doc View Source

    AddSkipFirstAndReturnConstant(IList<TElement>)

    Adds the elements of the list to the array, skipping the first element and returns the constant.

    Добавляет элементы списка в массив пропуская первый элемент и возвращает константу.

    Declaration
    public TReturnConstant AddSkipFirstAndReturnConstant(IList<TElement> elements)
    Parameters
    Type Name Description
    IList<TElement> elements

    The list of values to add.

    Список значений для добавления.

    Returns
    Type Description
    TReturnConstant

    The constant's value.

    Значение константы.

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX