I'm struggling to figure out how to retrieve the Value
part of an IGrouping
instance.
I have the following:
IList<IGrouping<string, PurchaseHistory> results = someList.GroupBy(x => x.UserName);
And I now wish to iterate through each collection and retrieve the purchase histories for that user (and check if some stuff exists in the collection of purchase histories).
how about a nested loop?
or one loop with linq statement