603 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