Using let in LINQ to Objects

May 22, 2008 00:58 by admin

In my opinion the let keyword is one of the most power features of LINQ.  Stuart Leeks posts about using let in LINQ to objects.

 

var query = from fileSystemInfo in fileSystemInfos
        where fileSystemInfo is FileInfo
        let fileInfo = (FileInfo)fileSystemInfo
        where fileInfo.Length < 1000
        select fileInfo;

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Related posts

Comments

December 15. 2008 11:44

Busby SEO Test

thanks for the information about Using let in LINQ to Objects

Busby SEO Test

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

January 6. 2009 18:20