Friday, May 3, 2013

Diff Between Select & SelectMany() method in linq?

The Select clause and SelectMany() method both 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.

No comments:

Post a Comment