Ive got ths really annoying issue I have grouped a set of data and I cant get to the data within the group. I can get to the key bit not the data..
I have a load of
You can use following code as well.
var groupedData = Data.GroupBy(x => x.Period); foreach (var group in groupedData) { var gr = group.FirstOrDefault(); Console.WriteLine("Period: {0}", gr.Period); Console.WriteLine("Adjustment: {0}", gr.Adjustment); }