[Mono-dev] [PATCH] System.Net.NetworkInformation
jaebird at gmail.com
Tue Jul 24 16:57:12 EDT 2007
Quite possible, it was a quick pass. The GetHashCode() is overridden to
provide its answer based on the underlying address bytes.
On 7/24/07, Alan McGovern <alan.mcgovern at gmail.com> wrote:
> Doing a comparison by comparing the hashcodes sounds very broken to me.
> It's quite possible for two objects to give the same hashcode without
> actually being equal.
> On 7/24/07, Jae Stutzman <jaebird at gmail.com> wrote:
> > This small patch makes the Equals(...) override more like MS behavior.
> > First if both addresses are empty it returns true, also the comparison now
> > uses the hashcode. This was changed as part of the porting a windows .net
> > app.
> > Jae
> > _______________________________________________
> > Mono-devel-list mailing list
> > Mono-devel-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-devel-list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list