> 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/valuetypes/enumerator-p.md).

# “Enumerator” (Problem)

What will the following code display?

```csharp
var x = new 
  {
    Items = new List<int> { 1, 2, 3 }.GetEnumerator()
  };
while (x.Items.MoveNext())
  Console.WriteLine(x.Items.Current);
```

[Solution](/problembookdotnet/en/valuetypes/enumerator-s.md)
