Element operations return a single, specific element from a sequence.
methods
| Method | Description | Query expression |
|---|---|---|
ElementAt(OrDefault) | Returns the element at the specified index | N/A |
First(OrDefault) | Returns the first element of a collection, or the first element that satisfies a condition | N/A |
Last(OrDefault) | Returns the last element of a collection, or the last element that satisfies a condition | N/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 |