本文部分内容来源于书籍和网摘。

List<T>.Find(Predicate<T>) Method 命名空间:System.Collections.Generic

 搜索与指定谓词所定义的条件相匹配的元素,并返回整个 List<T> 中的第一个匹配元素。

 List<T>.FindAll(Predicate<T>) Method检索与指定谓词定义的条件匹配的所有元素。

C# find方法、findLast方法、findAll方法实例解析

相关文章: