2012-12-20 10 views

답변

14

:

bool contains = yourList.Any(z => z.YouProperty > yourValue); 
3

당신은 Enumerable.Any<TSource> 방법을 사용할 수 있습니다. boolean을 반환합니다.

시퀀스에 요소가 포함되는지 여부를 결정합니다.

Return Value 
Type: System.Boolean 
true if the source sequence contains any elements; otherwise, false. 

List.Any(a => a.Property > Value); 
관련 문제