Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the difference between single and first in linq?



What is the difference between single and first in linq?..

Answer / Santosh Kumar Shukla

In LINQ, Single() returns the first element that matches the query, or throws an exception if there are no elements matching the query. First(), on the other hand, returns the first element or a default value (null for reference types, Default for nullable value types) if no elements match.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More LINQ Language-Integrated Query Interview Questions

What is the basic syntax of a linq query in visual basic as well as in c#?

1 Answers  


Write the basic syntax of a LINQ query in Visual Basic as well as in C#.

1 Answers  


How are standard query operators implemented in linq?

1 Answers  


What is Expression Trees?

1 Answers  


Explain what are linq compiled queries?

1 Answers  


What is the difference between single and first in linq?

1 Answers  


What is dbml in linq to sql?

1 Answers  


Which is faster linq or lambda?

1 Answers  


Explain what are compiled queries?

1 Answers  


What is Object Relational Designer (O/R Designer)?

1 Answers  


What is meant by linq in c#?

1 Answers  


What are the benefits of tier architecture style?

1 Answers  


Categories