Yield Operator Fun

added by dpeterson
12/28/2011 10:36:48 AM

4 Kicks, 427 Views

Sebastian Dau gives us a quick overview of how the yield operator can make your code cleaner and save you memory and execution time. He uses a simple example of filtering text from a streamreader which doesn't thrash memory by removing items from a collection after they've been loaded from the streamreader.


0 comments