10
shouts

Yield statement in C#:DotNetJaps

published 128 days, 6 hours, 24 minutes ago posted by http://jalpesh.blogspot.com/http://jalpesh.blogspot.com/ 128 days, 21 hours, 40 minutes ago
Tuesday, November 10, 2009 10:58:11 AM GMT Monday, November 09, 2009 7:42:02 PM GMT

Yield statement is one of most interesting statement in the C# 2.0. I have heard about lot of yield statement but today i have learned about yield statement. Yield statement can be used to return multiple object from a method while retaining its state. You can get item in sequence with help of yield.Let take a simple example to see the power or yield statement. Let's create one example which will help you the understand how its works Let create a function will return the square each time this function i...

category: ASP.NET | clicked: 46 | | source: jalpesh.blogspot.com | show counter code