Hi,
I have the following code defined:
However, when I use the ContainsKey method of Hashtable, my Equals function never gets called. Is there something I'm missing?
I have the following code defined:
VB.NET:
Public Overloads Function Equals(ByVal other as MyClass) As Boolean
Return Id = other.Id
End Function
However, when I use the ContainsKey method of Hashtable, my Equals function never gets called. Is there something I'm missing?
Last edited: