
Yield is a contextual keyword available only in certain contextual statements, mainly interacts with the foreach loop. It allows each iteration in a foreach loop to be generated only when needed. In this way it improves the performance of the query.
Today we will discuss about it with a small funny code. Let’s see how much we actually know about this keyword. If you can answer the output of the code, you already know about it.



Yesterday we discussed about “CallerMemberName” attribute. If you didn’t read it, you can find it here: “
C# 5.0 comes with Visual Studio 2012 and .NET Framework 4.5. Currently it is in RC (Release Candidate) mode and will get the final RTM version soon. In our last CSharp blog post “
Few days ago, in one my earlier post, I listed “
Few days ago, in one my earlier post, I discussed about “