• linq cheat sheet


    just saw in my feed reader...a cheat sheet by keith rull for LINQ.  keith purports that this isn't a definitive list by any means but says:

    "It consist of a few snippets that you might commonly do when doing LINQ processing."

    he uses this for his most common tasks.  when i first start learning anything new, i do the same thing keeping snippets around to help me remember certain things.  as an example, can't remember how to do the paging?  use keith's cheat:

    //take three records
    var takeThree = listOfPerson.Take(3);
    
    //go to the 10th record and then take 3 records from there
    var skipTenTakeThree = listOfPerson.Skip(10).Take(3);

    thanks for posting keith and look forward to your updates!

    Monday, December 17, 2007 3:29 PM

    PostTypeIcon

Comments.

No comments posted yet.

Your Reply.

  Comment Form  

Fields denoted with a "*" are required.

*Your name:
Subject:
Your blog:
Your email:  (will not be displayed)
*Your message:

 
Please add 8 and 5 and type the answer here: