Class ArrayFiller<TElement, TReturnConstant>
Represents TElement[] array filler with additional methods that return a given constant of type .
Представляет заполнитель массива TElement[] c дополнительными методами, возвращающими заданную константу типа .
Inherited Members
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 SourceArrayFiller(TElement[], TReturnConstant)
Initializes a new instance of the
Инициализирует новый экземпляр класса
Declaration
public ArrayFiller(TElement[] array, TReturnConstant returnConstant)
Parameters
Type | Name | Description |
---|---|---|
TElement[] | array | The array to fill. Массив для заполнения. |
TReturnConstant | returnConstant | The constant's value. Значение константы. |
ArrayFiller(TElement[], Int64, TReturnConstant)
Initializes a new instance of the
Инициализирует новый экземпляр класса
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 SourceAddAllAndReturnConstant(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. Значение константы. |
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. Значение константы. |
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. Значение константы. |
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. Значение константы. |