Spaghetti Tom
Saturday, September 10, 2016
var person = people.Single();
If there is no Lambda clause with a .Single() then the one and only member of a collection will be fished out of the collection. If there are less or greater than one things in the collection then an exception will be thrown.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment