Is there a good resource out there that explains the concept of enumerators and custom enumerators? Particularly one with a good solid example of why you would want to implement IEnumerable
yourself and how you would use it effectively?
I occasionally come across yield
and I am trying to get a better understanding of it.