I have several objects that depending on the use case are considered Equal differently.
I need to use these objects as keys for dictionaries and as far as I know Dictionary<>
use the Equals()
method which limits me to have only one implementation of it.
Is there any workaround to this? I expected to be able to inject a EqualityComparer
, a delegate or something so Dictionary<>
can use different ways of searching for items.
Thanks.