Difference between Select and SelectMany in LINQ

Select is used to select value from a collection whereas SelectMany is used to select values from a collection of collection i.e. nested collection. Select and SelectMany both are projection operators. In below example we will return a list of courses, each containing a list of subjects. You will see that Select will return a […]

Read More