IEnumerator<T>
An interface for an object that moves through a sequence one item at a time.
What is IEnumerator<T> in C#?
IEnumerator<T> — An interface for an object that moves through a sequence one item at a time.
class PlaylistReader
{
IEnumerator<string> Reader(IEnumerable<string> songs)
{
return songs.GetEnumerator();
}
}
Level: Freelancer · More C# terms at this level
Updated