Home
About Us
Contact Us
Bookmark
Saved Bookmarks
Current Affairs
General Knowledge
Chemical Engineering
UPSEE
BSNL
ISRO
BITSAT
Amazon
ORACLE
Verbal Ability
→
Programming
→
ASP Dot net Interview Questions in Programming
→
What is the difference between Single() and First(...
1.
What is the difference between Single() and First() extension methods in LINQ?
Answer»
Single()
First()
Used to
RETURN
a single specific
ELEMENT
of a query or a
DEFAULT
value if no result is found.
It is used to return the first element of any query with
MULTIPLE
values.
Used when exactly one element is expected as a result.
Used when there are multiple result expectations but you only
NEED
the first value.
Show Answer
Discussion
No Comment Found
Post Comment
Related InterviewSolutions
What are Quantifier Operations in LINQ?
What are entity classes in LINQ?
What is the difference between N-layer and N-tier architecture?
What are the difference between Conversion Operator ToDictionary and IEnumerable of LINQ?
What is an Anonymous function in LINQ?
What is the difference between the Take and Skip clause in LINQ?
What is the difference between SQL and LINQ?
What is LINQ and why it is used?
What is PLINQ and how it is different from LINQ?
What are compiled queries in LINQ?
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies