Deconstructing a LINQ Statement
by Aaron Hoffman
(download source code: http://aaronhoffman.googlecode.com/files/AaronHoffmanLinqDemov01.zip )
LINQ is a valuable tool, but because of the way it is usually demonstrated, developers think that its only use is for querying a Microsoft SQL Server database. This is because what is usually being demonstrated along with LINQ, is LINQ to SQL. LINQ is not just LINQ to SQL. I like to think of LINQ as a shorthand (or syntax shortcut) way of writing code - a way to write less lines of code (or simplify code), but still perform the same operations (kind of like what foreach is to the for loop).