[Mono-dev] [PATCH] Fix Type.Equals to support user defined types (required by vbnc)

Kornél Pál kornelpal at gmail.com
Sun Oct 29 13:13:45 EST 2006


I forgot to attach the diff file.:)

----- Original Message ----- 
From: "Kornél Pál" <kornelpal at gmail.com>
To: <mono-devel-list at lists.ximian.com>
Sent: Sunday, October 29, 2006 7:13 PM
Subject: [PATCH] Fix Type.Equals to support user defined types (required by 
vbnc)


> Hi,
>
> I modified Type.Equals (Type) to use UnderlyingSystemType and use internal 
> call only when both types are system types, otherwise only check for 
> reference equality. This seems to be the MS.NET behavior. Note that I 
> don't know why the internal call is required but mcs tree fails to build 
> without using the internal call.
>
> GetType is modified to use UnderlyingSystemType and use default 
> implementation for non-system types.
>
> The old Type behavior is moved to MonoType that seems to be compatiblie 
> with MS.NET.
>
> Please review and approve the patch.
>
> Kornél 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TypeEquals.diff
Type: application/octet-stream
Size: 6511 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20061029/ec60d95d/attachment.obj 


More information about the Mono-devel-list mailing list