Can anyone explain IEnumerable and IEnumerator to me? [closed]

Can anyone explain IEnumerable and IEnumerator to me?

For example, when to use it over foreach? what’s the difference between IEnumerable and IEnumerator? Why do we need to use it?

16 Answers
16

Leave a Comment