1.

What Is The Difference Between The Select Clause And Selectmany() Method In Linq?

Answer»

Both the Select clause and SelectMany() method are used to produce a result VALUE from a source of VALUES. The difference lies in the result set. The Select clause is used to produce one result value for EVERY source value. The result value is a collection that has the same number of elements from the query. In contrast, the SelectMany() method produces a single result that contains a CONCATENATED collection from the query.

Both the Select clause and SelectMany() method are used to produce a result value from a source of values. The difference lies in the result set. The Select clause is used to produce one result value for every source value. The result value is a collection that has the same number of elements from the query. In contrast, the SelectMany() method produces a single result that contains a concatenated collection from the query.



Discussion

No Comment Found