Select clause and SelectMany method in LINQ

Write the difference between Select clause and the SelectMany() method in theLINQ?

E

Expert

Verified

Select clause and SelectMany() method are used to generate a result value from the source of values. Difference lies in a result set. Select clause is used to create single result value for all source value. Result value is the collection which has a similar number of elements from the query. Whereas SelectMany() method produces the single result which contains the concatenated collection from query.

   Related Questions in DOT NET Programming

©TutorsGlobe All rights reserved 2022-2023.