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

Which assembly represents the core LINQ API?

1 Answers  


why SELECT clause comes after FROM clause in LINQ?

1 Answers  


What is linq placement?

1 Answers  


Can you explain brief about Aggregate() extension method in LINQ?

1 Answers  


What is into in linq?

1 Answers  


What is linq expression?

1 Answers  


In LINQ, lambda expressions underlie many of the standard query operators. Is it True or False?

1 Answers  


LINQ query is executed in which statement?

1 Answers  


What is select clause and where clause in linq?

1 Answers  


Why do we use “contains"?

1 Answers  


What is linq in ado net?

1 Answers  


What is predicate in linq?

1 Answers  


Categories