First Class Thoughts
Ideas of mine.
Join the conversation! Your thoughts help the community grow.
Join to leave a comment
Members earn 10 SHARP for a comment, 10 SHARP for a reaction, and 250 SHARP for every blog they publish.
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegisterMembers onlyFeatured eBookClaude for AI-Native BuildersDownload nowWrite a blog post and earn +250 SHARP when it is approved.
Write a blog
kasper graversenPosted Nov 25, 2008, 9:53 AM EST
This article explains how to use the C# constructs yield-return, yield-break and foreach. We attack the problem from two different implementation angles using the types IEnumerator and IEnumerable. http://firstclassthoughts.co.uk/csharp/csharp_yield_return_foreach.html