Collection<T, TCollection> .FirstOrDefault Method |
Name | Description | |
---|---|---|
![]() | FirstOrDefault() |
Gets the first value.
Returns a default value if there are
no values in the collection.
|
![]() | FirstOrDefault(Function1<T, Boolean>) |
Gets the first value that matches
the specified predicate.
Returns a default value if there are
no such values in the collection.
|