C# Class 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.
ファイルを表示 Open project: Orcomp/Orcomp Class Usage Examples

Public Methods

Method Description
Any ( this c ) : bool

Returns true if the collection contains any elements.

Method Details

Any() public static method

Returns true if the collection contains any elements.
public static Any ( this c ) : bool
c this
return bool