System::Collections::Generic::IEnumerable::LINQ_First 方法
IEnumerable::LINQ_First() method
返回序列的第一个元素。
T System::Collections::Generic::IEnumerable<T>::LINQ_First()
ReturnValue
序列中的第一个元素。
另见
- Class IEnumerable
- Namespace System::Collections::Generic
- Library Aspose.Font for C++
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
满足指定条件的序列中的第一个元素。
另见
- Class Func
- Class IEnumerable
- Namespace System::Collections::Generic
- Library Aspose.Font for C++