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.
파일 보기 프로젝트 열기: Orcomp/Orcomp 1 사용 예제들

공개 메소드들

메소드 설명
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