Since you are combining GroupBy
and ToDictionary
, by doing groupData[pointer]
you are getting value from dictionary, which is IGrouping. If you need to extract data from grouping, you need 1 more index getter groupData[pointer][taxDet]
Probably .ToDictionary(g => g.Key);
is redundant in this case