System::Collections::Generic::IEnumerable::LINQ_First 方法

IEnumerable::LINQ_First() method

返回序列的第一个元素。

T System::Collections::Generic::IEnumerable<T>::LINQ_First()

ReturnValue

序列中的第一个元素。

另见

IEnumerable::LINQ_First(const Func<T, bool>&) method

返回满足指定条件的序列的第一个元素。

T System::Collections::Generic::IEnumerable<T>::LINQ_First(const Func<T, bool> &predicate)
参数类型描述
谓词const Func<T, bool>&用于测试每个元素是否满足条件的函数。

ReturnValue

满足指定条件的序列中的第一个元素。

另见