Returns the only element of a sequence that satisfies a specified condition, and throws an exception if more than one such element exists.
TSource The type of the elements of source.
The single element of the input sequence that satisfies a condition.
An Iterable to return a single element from.
Optional
A function to test an element for a condition.
Generated using TypeDoc
Returns the only element of a sequence that satisfies a specified condition, and throws an exception if more than one such element exists.
Typeparam
TSource The type of the elements of source.
Returns
The single element of the input sequence that satisfies a condition.