I have two IEnumerable IGrouping in my C# program:
IEnumerable<IGrouping<string, FileItem>> number1
IEnumerable<IGrouping<string, FileItem>> number2
Is it somehow possible to concat these two IEnumerable into one?
You could make use of the Concat
method:
var concatenated = number1.Concat(number2);
For more info about this method, please have a look here.