Element operations return a single, specific element from a sequence.

Methods

MethodDescriptionQuery expression
ElementAt(OrDefault)Returns the element at the specified indexN/A
First(OrDefault)Returns the first element of a collection, or the first element that satisfies a conditionN/A
Last(OrDefault)Returns the last element of a collection, or the last element that satisfies a conditionN/A
Single(OrDefault)Returns the only element of a collection that satisfies a condition. Throws InvalidOperationException if no such element or more than one such element.N/A