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 firstordefault () select methods in linq?



What is the difference between first () and firstordefault () select methods in linq?..

Answer / Seema Rani

"first()" returns an exception if no elements are found, while "firstordefault()" returns a default value of the element type when no elements are found.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More LINQ Language-Integrated Query Interview Questions

Differentiate between linq and stored procedure?

1 Answers  


Is not supported in linq to entities?

1 Answers  


What is linq placement?

1 Answers  


What is “oftype"? In linq?

1 Answers  


What are the important points to remember while using lambda expressions?

1 Answers  


What do you understand by datacontext class?

1 Answers  


What is Extension method?

1 Answers  


What are the three main components of linq or language integrated query?

1 Answers  


Why cant datareader be returned from a web services method?

1 Answers  


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

1 Answers  


How to return iqueryable from linq query?

1 Answers  


What is difference between XElement.Load() and XDocument.Load()?

1 Answers  


Categories