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 First() and Single() extension methods in LINQ?



What is the difference between First() and Single() extension methods in LINQ?..

Answer / Arvind Verma

First() returns the first element from a sequence or an enumerable object, while Single() also retrieves the first element but throws an exception if there are multiple elements or no elements at all. In other words, First() has a potential to return more than one result if multiple elements exist in the sequence.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More LINQ Language-Integrated Query Interview Questions

Can we use LINQ with databases other than SQL Server

1 Answers   Sans Pareil IT Services,


Explain linq to sql?

1 Answers  


Why is linq used?

1 Answers  


What are the Quantifiers in LINQ?

1 Answers   Sans Pareil IT Services,


Explain how standard query operators useful in LINQ?

1 Answers  


What is LINQPad?

1 Answers  


What are different methods to write LINQ Query?

1 Answers  


Differentiate between select() and selectmany() method in linq.

1 Answers  


What is linq in c# and its advantages?

1 Answers  


Write a program using linq to find the sum of first 5 prime numbers?

1 Answers  


Explain why select clause comes after from clause in linq?

1 Answers  


Is linq a framework?

1 Answers  


Categories