Select clause and SelectMany() method in LINQ

State the use of the Select clause and SelectMany() method in LINQ?

E

Expert

Verified

Select clause and SelectMany() method both are used for producing a result value from a source of values. The basic difference lies in the result set. “Select” clause is used for producing one result value for every source value. Result value is a collection which has the equal number of elements from the query. Where, the SelectMany() method yields a single result which consists of a concatenated collection from the query.

   Related Questions in DOT NET Programming

©TutorsGlobe All rights reserved 2022-2023.