What is difference between first and single in linq?
Answer / Devender Kumar
First returns an IEnumerable containing all elements that meet the condition, or an empty enumerable if no such elements are found. Single returns the first element of a sequence that satisfies a condition; it throws an exception if there are multiple matching elements or no elements at all.
| Is This Answer Correct ? | 0 Yes | 0 No |
How you can assign a lambda expression to a delegate?
What are different types of joins in LINQ?
What is lambda expression in linq c#?
When linq query is executed?
What does linq?
What is difference between linq and lambda expression?
Differentiate between linq and stored procedure?
How does linq to sql work?
What is difference between single and singleordefault in linq?
What is system linq?
How standard query operators useful in linq?
What is the difference between LINQ and Lambda Expression?
1 Answers Petranics Solutions,
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)