The text of this article is not in this database — only its details are. Read it on the old site: Implement IEnumerable Interface in C#
3 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: Implement IEnumerable Interface in C#
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
Tomasz BorawskiPosted Jul 6, 2023, 8:33 PM
I don't if this is a good practice to check the null value in Enumerator. We could think about storing null values. You have got freeindex field to check how many elements are stored. Another issue is why you don't use yield break.
Kaushal PareekPosted Aug 2, 2018, 1:05 PM
Nicely explained. thank you
Yuva PriyaPosted Nov 13, 2013, 12:32 AM
Good