Class TechEnumeration<T>
Перечень элементов технологических данных.
Inherited Members
Namespace: Ascon.Vertical.Core
Assembly: Ascon.Vertical.Core.dll
Syntax
public class TechEnumeration<T> : ITechEnumeration<T>, IEnumerable<T>, IEnumerable
Type Parameters
| Name | Description |
|---|---|
| T | Тип элемента. |
Constructors
TechEnumeration(IEnumerable<T>)
Создаёт экземпляр класса TechEnumeration<T>.
Declaration
public TechEnumeration(IEnumerable<T> items)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<T> | items | Элементы, входящие в перечень. |
Fields
Items
Список элементов перечня.
Declaration
protected readonly IReadOnlyList<T> Items
Field Value
| Type | Description |
|---|---|
| IReadOnlyList<T> |
Properties
Count
Возвращает количество элементов в перечне.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
this[int]
Возвращает элемент перечня по индексу.
Declaration
public T this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | Индекс элемента. |
Property Value
| Type | Description |
|---|---|
| T |
Methods
Contains(T?)
Проверяет наличие элемента в перечне.
Declaration
public bool Contains(T? item)
Parameters
| Type | Name | Description |
|---|---|---|
| T | item | Проверяемый элемент. |
Returns
| Type | Description |
|---|---|
| bool |
|
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<T> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<T> | An enumerator that can be used to iterate through the collection. |