Download
100% FREE
Office Document APIs for .NET
Online: 1762
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Interviews
>
LINQ
>
Loading ...
What is the difference between First() and Single() extension methods in LINQ ?
Posted by
Akiii
on 3/6/2012 | Category:
LINQ Interview questions
| Views: 9393 |
Points: 40
Post
|
Interview FAQs
|
Exclusive Questions
|
Interview Home
Answer:
•
First()
- There is at least one result, an exception is thrown if no result is returned.
•
Single()
- There is exactly 1 result, no more, no less, an exception is thrown if no result is returned.
Thanks and Regards
Akiii
|
Alert Moderator
Bookmark It
< Previous :
What is the difference between Resume, CV and Biod ...
Next > :
What is the difference between FirstOrDefault() an ...
Comments or Responses
Posted by:
Kulprachi84
on: 3/16/2012 |
Points: 10
Informative!
Posted by:
Akiii
on: 3/16/2012 |
Points: 10
LINQ is a good programming model, especially with lambda expression !
Regards
Akiii
Login to post response
More Interview Questions by Akiii
What is the difference between FirstOrDefault() and SingleOrDefault() ...
Can you explain in brief about Aggregate() extension method in LINQ ?
What is the difference between Count() and LongCount() extension metho ...
What is the basic difference between a "const" and "rea ...
Which transferMode is the default transferMode in WCF ?
WCF processes messages in buffered mode. True or False ?
In traditional web service, can Hash table (IDictionary interface) can ...
In traditional web services, Only Public fields or Properties of .NET ...
Latest Interview Questions
What is Black Box and White Box Testing?
What is Thread.Sleep() in Threading ?
Which namespace has Threading ?
How to host WPF Controls in Windows Forms?
How to Creating Windows Forms Controls Dynamically in WPF?
What is the series of event fired for application shutdown in WPF?
What is the series of Window Events at Startup in WPF?
What is the Application Lifetime in WPF?
More ...