First time here?

You are looking at the most recent posts. You may also want to check out older archives. Please leave a comment, ask a question and consider subscribing to the latest posts via RSS or email. Thank you for visiting!

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!


The opinions/content expressed on this blog are provided "ASIS" with no warranties and are my own personal opinions/content (unless otherwise noted) and do not represent my employer's view in any way.