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 difference between single and singleordefault in linq?



What is difference between single and singleordefault in linq?..

Answer / Vivek Kumar

Single returns the first element in an enumerable that matches a specified condition, throwing an exception if multiple matching elements are found. SingleOrDefault returns the first matching element or a default value (null for reference types) if no matching element is found.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More LINQ Language-Integrated Query Interview Questions

What is the linq file extension that interacts with code behind objects.

1 Answers  


List out the data context functions. Where do we use “submitchanges()"?

1 Answers  


What are the benefits of tier architecture style?

1 Answers  


What are anonymous types?

1 Answers  


What are the different ways to write linq query syntax?

1 Answers  


What is lambda expression in linq c#?

1 Answers  


How to write where condition in linq?

1 Answers  


What is the difference between N-layer and N-tier architecture?

1 Answers  


What is linq in c# with example?

1 Answers  


Explain how you can differentiate between Conversion Operator “ToDictionary” and “IEnumerable” of LINQ?

1 Answers  


What is a linq cardiac monitor?

1 Answers  


What are element operators?

1 Answers  


Categories