I have IEnumerable<GroupResult<T>>
where GroupResult<T>
is following:
public class GroupResult<T>
{
public string Key { get; set; }
public IEnumerable<T> Items { get; set; }
}
So let's say the collection looks like this:
{
Key: "1",
Items: { "A", "B" }
}
{
Key: "1",
Items: { "C", "D" }
}
{
Key: "2",
Items: { "E", "F" }
}
What operation can I perform to get the following:
{
Key: "1",
Items: { "A", "B", "C", "D" }
}
{
Key: "2",
Items: { "E", "F" }
}