HTML5 Canvas
Written by: Simon Sarris
Featured Refcardz: Top Refcardz:
  1. Apache Hadoop
  2. Web Driver
  3. MVVM
  4. REST
  5. ADO.NET
  1. HTML5
  2. Ajax
  3. jQuery Selectors
  4. CSS Part 1
  5. Git

Link Details

Link 86125 thumbnail
User 285573 avatar

By alashcraft
via codethinked.com
Published: Jun 11 2008 / 06:47

I came across this post yesterday that was talking about the "yield return" statement in C#. It is probably one of the most underused features of C# 2.0! And yes, it was introduced in C# 2.0. :) The author does an excellent job explaining what the "yield return" statement does, and that is to essentially pause the execution of the method so that next time it is called the function resumes where it left off. It is a very limited implementation of a continuation, where we are effectively weaving the execution of the method being called with the caller.
  • 9
  • 0
  • 1025
  • 0

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (9)



Voters Against This Link (0)