SingleorDefault() requires that one and only one element exists in the sequence.  But FirstorDefault() simply gives you the first one or top one in the sequence.  Both assert that at least one exists and both returns default or null value if nothing exists in sequence.


 
 Tuesday, December 07, 2010
Tuesday, December 07, 2010
 Unknown
Unknown








0 comments:
Post a Comment