[Mono-list] To yield or to not
Gaurav Vaish
gaurav.vaish at gmail.com
Fri Sep 23 09:39:21 EDT 2005
Hi,
Finally I somewhat understood how yield works.. probably, the correctly.
And noting how it works (acquiring and releasing locks), is it a good
idea to use yield? Or is it better to stick with plain old IEnumerable and
IEnumerator, may be with a pinch of generics...
I am yet to figure out "why was this feature introduced"? I mean... what
advantage does it give besides having, probably, lesser code to write.
--
Cheers,
Gaurav Vaish
Ex-Mono Hacker
http://mastergaurav.org
-----------------------
More information about the Mono-list
mailing list