What is the difference between the Select clause and SelectMany() method in LINQ?
Answer Posted / Samar Jeet Yadav
The Select clause projects each element from an input sequence to a new form, creating a new sequence. On the other hand, the SelectMany() method flattens multiple sequences into one by applying a projection to each element of the input sequences. If the projection returns multiple elements, they are combined into a single sequence.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category