共用方式為


Explain C# yield keyword with an example

Getting back to my blogging, I just posted an interview question on my programminginterviews blog on https://www.programminginterviews.info/2012/05/explain-c-yield-keyword-with-example.html. This uses the C# yield keyword to iterate over a collection and return chunks of data to process.

Comments

  • Anonymous
    June 04, 2012
    Good, simple example. Well explained

  • Anonymous
    November 20, 2013
    Very Good Example. Thanks !!