I am using LINQ and doing a group by using multiple objects. One of these objects is a HashSet.
var group = map.GroupBy(m => new{m.Item2.Clients,m.Item3,m.Item2.StartTimeID});
Where m.Item2.ClientCampaigns
is of type HashSet,
m.Item3
is a seperate class that methods for GetHashCode and Equals methods
m.Item2.StartTimeId
is of type INT
Now I need to do a GROUP BY on these three, by passing in a custom IEquality Comparer I guess?
If it was just HasSet, I could use HashSet<ClientCampaign>.CreateSetComparer()
as the second argument in the GroupBy method.
In this case, what should I use?