Thank you. Very interesting and opened my eyes to other things. Inspired, I created a kind of Grep class for linq.
http://staceyw.spaces.live.com/blog/cns!F4A38E96E598161E!1314.entrySample:
Console.WriteLine("\nGet number of files and total size under a dir.");long totSize = 0;long totFiles = 0;var q = (from f in new LFileInfo(@"c:\temp").Children(true) let x = totSize += f.Length let y = totFiles++ select f); Console.WriteLine("Total Size:{0:N} Total Files: {1}", totSize, totFiles);
To get started with your own LINQ Provider;http://www.codeplex.com/LinqExtender/