DotNetShoutout - Stories tagged with enumerator
3
Shouts

How to cook a loop

posted by slo2olsslo2ols 663 days, 17 hours, 11 minutes ago
Tuesday, July 26, 2011 10:43:30 AM GMT
With coming of Linq we rarely write loops. Actually, the most part of data fetching tasks, those earlier was done by loops, today could be simply done by Linq-to-Objects. Nevertheless, the loops are widely used for different scenarios and a developer should try to write a good loop. This post was written for beginners, but I hope that experienced developers will find in it something useful. (more)
category: How To | clicked: 4 | comment | | source: osmirnov.net
tags: C#, Indexer, Linq, Loop, enumerator
5
Shouts

Foreach for outer services

published 838 days, 10 hours, 26 minutes ago posted by slo2olsslo2ols 839 days, 19 hours, 18 minutes ago
Tuesday, February 01, 2011 5:27:42 PM GMT Monday, January 31, 2011 8:36:20 AM GMT
Foreach one of the most frequently used statements in C#.  But sometimes this simple cycle leads to problems in performance.  Of course, an issue  in an Enumerator and cost of its call, but foreach multiply this value as many times as elements are contained at destination collection. In this post we will discuss why it is happening and how to avoid it. (more)
category: How To | clicked: 0 | comment | | source: osmirnov.net
tags: .NET, foreach, WCF, Sharepoint, enumerator
2
Shouts

patrick dewane gathers wool: Threading the Needle Coroutines and Continuations

posted by patrickdewanepatrickdewane 1143 days, 11 hours, 25 minutes ago
Friday, April 02, 2010 4:28:42 PM GMT
If you haven't already noticed, my blogs trends mostly towards the obscure for no reason other than I find it fun and interesting. Well, let's keep trending in that direction then. A few weeks back while iterating over some set of data (a generic list if I recall), I paused for a moment and re-realized the enumerator I was using was a form of coroutine. If you're not familiar with the term, a coroutine is generalized subroutine that supports multiple entry points and can pause and resume execution at pr... (more)
category: How To | clicked: 1 | comment | | source: www.patrickdewane.com
tags: C#, coroutine, foreach, continuation, enumerator