Show / Hide Table of Contents

Class TechEnumeration<T>

Перечень элементов технологических данных.

Inheritance
object
TechEnumeration<T>
Implements
ITechEnumeration<T>
IEnumerable<T>
IEnumerable
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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

true - если присутствует, иначе - false.

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.

Implements

ITechEnumeration<T>
IEnumerable<T>
IEnumerable

Extension Methods

EnumerableExtensions.DistinctBy<TSource, TKey>(IEnumerable<TSource>, Func<TSource, TKey>, IEqualityComparer<TKey>)
Back to top Copyright © 2014 - 2026 ООО «АСКОН-Бизнес-решения»