[Mono-list] .NET Remoting and Hashtable
Robert Jordan
robertj at gmx.net
Thu Mar 27 07:31:28 EDT 2008
Hi,
nemesis35 wrote:
> No idea where the problem could be, maybe the copy of the object Node is not
> the same like in the object stored in the hashtable??
It is definitely not the same object, so you have to implement
Node.GetHashCode() to establish a consistent identity that does
not rely upon Object.GetHashCode.
Note that if "Node" is a MarshalByRefObject, GetHashCode won't
be called remotely. This means that overriding GetHashCode has
no effect in other app domains than the creator domain.
Robert
More information about the Mono-list
mailing list