Idictionary
System.Collections.IDictionary and System.Collections.Generic.IDictionary<TKey, TValue> interfaces in the BCL (Base Class Library) of the .NET framework represent a collection of key-value pairs.
Iequalitycomparer
IEqualityComparer is a .NET framework interface that allows the implementation of customized equality comparison for collections
Others
Example |
---|
Using iequalitycomparer which is better because works without altering initial idictionary signature from question Dictionary avoid inversion with same key value type |