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 is the difference between first () and firstordefault () select methods in linq?

1 Answers  


Why cant datareader be returned from a web services method?

1 Answers  


What is LINQ and why to use it?

1 Answers  


What is linq query in c#?

1 Answers  


How to pass parameters to stored procedure using linq?

1 Answers  


How can you find average of student marks from student tables (columns are studentid, marks)?

1 Answers  


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

1 Answers   TryTechnicals Pvt Ltd,


What are different types of joins in LINQ?

1 Answers  


What do you understand by linq?

1 Answers  


Differentiate between linq and stored procedure?

1 Answers  


Can we use linq with ado net?

1 Answers  


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

1 Answers  


Categories