TEnumerableBase<T>.FirstOrDefault Method

Returns the first element of a sequence, or a default value if the sequence contains no elements.

Namespace: Spring.Collections.Base
public
 function FirstOrDefault: T; overload;

Return Value

Type: T

Default(T) if source is empty; otherwise, the first element in source.

Implements

IEnumerable<T>.FirstOrDefault