> For the complete documentation index, see [llms.txt](https://andreyakinshin.gitbook.io/problembookdotnet/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://andreyakinshin.gitbook.io/problembookdotnet/en/linq/exceptionyieldyield-s.md).

# “ExceptionYieldYield” (Solution)

## Answer

Call of `evenNumbers.FirstOrDefault()`.

## Explanation

The lines

```csharp
var numbers = GetSmallNumbers();
var evenNumbers = numbers.Select(n => n * 2);
```

only build a query, but don't execute it. A logic of the `GetSmallNumbers()` method starts run at the first call of the `MoveNext()` method, which corresponds to the first call of the `MoveNext()` method. At this point, the `Exception` will happen.

[Problem](/problembookdotnet/en/linq/exceptionyieldyield-p.md)
