-
Notifications
You must be signed in to change notification settings - Fork 26
First
Eugene Sadovoi edited this page Jul 7, 2016
·
1 revision
Returns first element of the sequence
First([predicate])
A function to test each element for a condition. Boolean predicate(TSource)
The first element in the sequence that passes the test in the specified predicate function.
The First method throws an exception if no matching element is found in source. To instead return a default value when no matching element is found, use the FirstOrDefault method.