TEnumerableBase<T>.SingleOrDefault(TPredicate<T>) Method
Returns the only element of a sequence that satisfies a specified condition or a default value if no such element exists; this method throws an exception if more than one element satisfies the condition.
public function SingleOrDefault(const predicate: TPredicate<T>): T; overload;
Parameters
- predicate
- Type: TPredicate<T>
Return Value
Type: T