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...


Which one is fast between SingleOrDefault and FirstOrDefault?



Which one is fast between SingleOrDefault and FirstOrDefault?..

Answer / Mukesh Gupta

SingleOrDefault can be faster because it stops enumeration as soon as a matching element is found, whereas FirstOrDefault might iterate through the entire sequence to find the first element.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More LINQ Language-Integrated Query Interview Questions

What are the benefits of a deferred execution in linq?

1 Answers  


What is the difference between FirstOrDefault() and SingleOrDefault() extension method in LINQ ?

1 Answers  


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

1 Answers  


Difference between linq and stored procedures?

1 Answers  


What does linq?

1 Answers  


What are advantages of using LINQ on DataSet?

1 Answers  


What are conversion operators?

1 Answers  


Describe the architecture of linq?

1 Answers  


What is linq and why use it?

1 Answers  


Which is faster linq or lambda?

1 Answers  


Why from comes first in linq?

1 Answers  


How you can retrieve a single row with linq?

1 Answers  


Categories