Loading

Enumerable..::.All<(Of <(TSource>)>) 方法

确定序列中的所有元素是否满足条件。

 

类型参数

TSource

source 中的元素的类型。

参数

source
类型:System.Collections.Generic..::.IEnumerable<(Of <(TSource>)>)

包含要应用谓词的元素的 IEnumerable<(Of <(T>)>)

predicate
类型:System..::.Func<(Of <(TSource, Boolean>)>)

用于测试每个元素是否满足条件的函数。

返回值

类型:System..::.Boolean

如果源序列中的每个元素都通过指定谓词中的测试,或者序列为空,则为 true;否则为 false

 

 

Code

 

posted @ 2009-06-05 20:53  .net's  阅读(534)  评论(0)    收藏  举报