Okay, I’ve learn’t something new today, so I’d thought I would share it with you, it’s the yeald keyword, the reason why I think I have not used or know about it before is that it is used for an IEnumerable collection, which has come more in to play with LINQ, here is a short example of how it can be used:


This generates the following output:




It just makes sense to do it this way, much cleaner and much more efficient.

For more details check of MSDN on yeald.

It’s worth noting that Yield is not support with VB.NET



MVC LifeCycle

To understand the the power of MVC you need to understand the Life Cycle, I could go in to great detail about the ASP.NET Lifecycle, but I have found a number of very good articles already providing good amount of information on the LifeCycle.  Before going to the pages here is a simple flow diagram of the steps the MVC process goes through

The ASP.NET MVC Pipeline – Steve Sanderson

ASP.NET MVC – Living in a Web Forms World