Using the LINQ Keyword "First"

All day I was stumped on why there wasn't a simple way to grab the first object in a sequence other than using: .Take(1).Single Then I discovered the keyword First. I'm still a little puzzled as to why .Single would throw an exception if more Read More...

Read the complete post at http://feeds.feedburner.com/~r/JasonNGaylord/~3/330057216/using-the-linq-keyword-quot-first-quot.aspx

Published Tue, Jul 8 2008 13:42 by Jason N. Gaylord's Blog
Filed under: ,
Powered by Community Server (Commercial Edition), by Telligent Systems