This is so if you want to iterate over all elements
foreach (IGrouping<int, YourClass> value in result) { foreach (YourClass obj in value) {
And so, if you want to find something by the key
List<YourClass> obj1 = result.Where(a => a.Key == 12).SingleOrDefault().Where(b=>b.objId.Equals(125)).ToList();
(In this case, the key is considered "int")
source share