C# Класс Orc.DataStructures.AList.LCInterfaces

This class contains extension methods that are provided as part of various Loyc.Collections interfaces. For example, it provides methods such as IndexOf(), Contains() and CopyTo(), that the traditional ICollection{T} and IList{T} interfaces require the author to write himself.
For covariant collections such as ISource{T} and , the CLR actually prohibits methods such as Contains(T) and IndexOf(T), because T is not allowed in "input" positions. Therefore, these extension methods must be used to fill the gap. Even methods such as bool TryGet(int, out T) are prohibited, so TryGet() has the signature T TryGet(ref bool failed) instead, and extension methods provide the original version of the method in addition.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Any ( this c ) : bool

Returns true if the collection contains any elements.

Описание методов

Any() публичный статический Метод

Returns true if the collection contains any elements.
public static Any ( this c ) : bool
c this
Результат bool