JaedenRuiner
Well-known member
- Joined
- Aug 13, 2007
- Messages
- 340
- Programming Experience
- 10+
When using the generic class
what is the standard comparison used for TKey comparison when the TKey supplied type is that of a a class object.
I was hoping/expecting that it would use the Object.Equals() extension or some derivation which is why I overrode it in my TKey class, but now i'm thinking it might use references which would naturally fail.
However, if it does work via comparing references, how would I override the built in Comparer , since the property is readonly.
thanks
VB.NET:
Inherits System.Collections.ObjectModel.KeyedCollection(Of TKey, TItem)
what is the standard comparison used for TKey comparison when the TKey supplied type is that of a a class object.
I was hoping/expecting that it would use the Object.Equals() extension or some derivation which is why I overrode it in my TKey class, but now i'm thinking it might use references which would naturally fail.
However, if it does work via comparing references, how would I override the built in Comparer , since the property is readonly.
thanks