IEnumerable<T>
noun
say it: “EYE ih-NOO-mer-uh-bul” /aɪ ɪˈnuːmərəbəl/
A C# interface for any sequence you can go through one item at a time, such as a list or a LINQ result.
What is IEnumerable<T> in C#?
IEnumerable<T> — An interface for a sequence that can be visited one item at a time.
class Playlist
{
IEnumerable<string> songs = new List<string>();
}
In a sentence
- “The method returns IEnumerable<Product>, so callers can loop over it with foreach.”
Level: Freelancer · More C# terms at this level
Updated