Is IEnumerable required to use a foreach loop?

Viewed 2121

I was wondering, when exactly can I use the foreach loop? Do I have to implement IEnumerable?

4 Answers
Related