[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:09 EST 2006


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 




More information about the Mono-devel-list mailing list