# IEnumerator&lt;T>

An interface for an object that moves through a sequence one item at a time.

## What is **IEnumerator&lt;T>** in C#?

**IEnumerator&lt;T>** — An interface for an object that moves through a sequence one item at a time.

```csharp
class PlaylistReader
{
    IEnumerator<string> Reader(IEnumerable<string> songs)
    {
        return songs.GetEnumerator();
    }
}
```

Level: Freelancer · [More C# terms at this level](https://www.ask-codey.com/glossary/subjects/c-sharp/freelancer)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/ienumerator-t
