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 <[EMAIL PROTECTED]> 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.

Alan.

On 7/24/07, Jae Stutzman <[EMAIL PROTECTED]> 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@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to