Visualizing LINQ

Published 28 February 08 10:52 PM | MattManela 

I ran across an awesome code sample written by Jon Skeet.   He realized that many people may have difficulty understanding how the lazy evaluation in LINQ (and programming with iterator combinators in general) works.  His program/code sample is able make the lazy evaluation clear by animating it on the fly.  He intercepts each step in the LINQ evaluation and animates that step.  When the program runs you will see one element at a time be processed through the LINQ query.

 

I definitely recommend taking a look:

http://msmvps.com/blogs/jon.skeet/archive/2008/02/20/visual-linq-watch-query-expressions-as-they-happen.aspx

image

 

Kudos to Jon on a job well done.

Comments

# MSDN Blog Postings » Visualizing LINQ said on February 29, 2008 2:36 AM:

PingBack from http://msdnrss.thecoderblogs.com/2008/02/29/visualizing-linq/

Anonymous comments are disabled

About MattManela

I am a software developer at Microsoft. My blog is http://blogs.msdn.com/matt
Page view tracker