I have a Dictionary that has a signature: Dictionary<int, List<string>>
. I'd like to convert it to a Lookup with a signature: Lookup<int, string>
.
I tried:
Lookup<int, string> loginGroups = mapADToRole.ToLookup(ad => ad.Value, ad => ad.Key);
But that is not working so well.