Method FirstMatchingElement
FirstMatchingElement<TSource>(IEnumerable<TSource>)
Represents the first matching element in an array used in a query (corresponds to the server's "$" update operator).
public static TSource FirstMatchingElement<TSource>(this IEnumerable<TSource> source)
Parameters
sourceIEnumerable<TSource>A source of values.
Returns
- TSource
Only meant to be used in Update specifications.
Type Parameters
TSourceThe type of the elements of
source.