i have the following property:
List<Tuple<string,List<Object>>> GroupedItems
I need a List of all Objects.
Currently I am using a very pragmatic approach with a loop:
List<Object> flatList = new List<Object>();
foreach (var y in container.GroupedItems)
{
foreach(var z in y.Item2)
{
flatList.Add(z);
}
}
I am sure this operation can be done in a more comfortable way by using LINQ, unfortunately I do not have much experience with this.
Thanks in advance :)