I wish to use HashSet as the key to a Dictionary:
HashSet
Dictionary, TValue> myDictionary = new Dictionary
You could use the set comparer provided by HashSet:
var myDictionary = new Dictionary, TValue>(HashSet.CreateSetComparer());