The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
Enumerable::First Method
.NET Framework (current version)
Returns the first element of a sequence.
Assembly: System.Core (in System.Core.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | First<TSource>(IEnumerable<TSource>^) | Returns the first element of a sequence. |
![]() ![]() | First<TSource>(IEnumerable<TSource>^, Func<TSource, Boolean>^) | Returns the first element in a sequence that satisfies a specified condition. |
Show:

