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


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



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

Answer / Anil Tomar

The 'select()' method is used to project each element of a sequence into a new form by applying a transformation function to each element. It returns a new collection containing the result of the projection. The 'selectMany()' method is an extension method that projects each element of a sequence into a flat sequence of values by applying a transformation function to each element, and then concatenating the results together. It does not create any additional collections.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More LINQ Language-Integrated Query Interview Questions

How can we find sequence of items in two different array (same type) in the same order using linq query?

1 Answers  


How does linq to sql work?

1 Answers  


When to use var or IEnumerable to store query result in LINQ?

1 Answers  


What is the advantage of linq in c#?

1 Answers  


How to assign a computed value to the same array back?

1 Answers   B-Ways TecnoSoft,


What are important features linq?

1 Answers  


What are conversion operators?

1 Answers  


What is the benefit of using linq in dataset?

1 Answers  


Explain how you can retrieve a single row with LINQ?

1 Answers  


Differentiate between statement lambda and expression lambda.

1 Answers  


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

1 Answers  


What is difference between single and singleordefault in linq?

1 Answers  


Categories