what is the difference between the select clause


What is the difference between the Select clause and SelectMany() method in LINQ?

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.

 

Request for Solution File

Ask an Expert for Answer!!
DOT NET Programming: what is the difference between the select clause
Reference No:- TGS0311169

Expected delivery within 24 Hours