# Iterator

*noun*

say it: **“IT-er-ay-ter”** **/ˈɪtəreɪtər/**

An object that goes through a collection's items one at a time.

## What is **Iterator** in C#?

**Iterator** — An object that visits collection elements one at a time.

## In a sentence

- “foreach uses an **iterator** behind the scenes to visit each book.”

Level: Freelancer · [More C# terms at this level](https://www.ask-codey.com/glossary?category=c-sharp&level=4)

Updated: November 9, 2026

## In other subjects

- [Iterator in Java](https://www.ask-codey.com/glossary/iterator-java)
- [Iterator in JavaScript](https://www.ask-codey.com/glossary/iterator-javascript)
- [Iterator in Python](https://www.ask-codey.com/glossary/iterator)

Source: https://www.ask-codey.com/glossary/iterator-c-sharp
