[Mono-dev] [PATCH] System.Net.NetworkInformation

Alan McGovern alan.mcgovern at gmail.com
Tue Jul 24 15:52:06 EDT 2007


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.

Alan.

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...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070724/2eddbd31/attachment.html 


More information about the Mono-devel-list mailing list