I\'ve been searching the difference between Select and SelectMany but I haven\'t been able to find a suitable answer. I need to learn the differenc
Select
SelectMany
It is the best way to understand i think.
var query = Enumerable .Range(1, 10) .SelectMany(ints => Enumerable.Range(1, 10), (a, b) => $"{a} * {b} = {a * b}") .ToArray(); Console.WriteLine(string.Join(Environment.NewLine, query)); Console.Read();
Multiplication Table example.