How to get a value from a generic dictionary using a custom comparer for the key?
问题 I have a generic dictionary of objects and want to use a custom comparer to update the value in the dictionary. myObjects contains a dictionary of objects and the value is the number of times that object exists. Note that the value may be incremented numerous times using different comparators or removed altogether. testObject is my custom object. customComparer is a dynamically changing comparer based on the type of testObject. but all comparers are of the type IEqualityComparer<MyObject>