[Mono-list] mono and .net differences in Type::GetType

Gonzalo Paniagua Javier gonzalo@ximian.com
13 Jan 2003 23:08:19 +0100


El lun, 13-01-2003 a las 18:57, kojoadams escribió:
> With .net Type.GetType seems to only load types that are in the corlib
> or in the running assembly, while mono's will load any type that is in
> the is in assembly in MONO_PATH.
>  
> eg
>  
> using System;
> public class Driver{
>     public static void Main(){
>         //type will be null in .net System.Uri is in System.dll
>         //   but won't on mono
>         Type type = Type.GetType("System.Uri");
>     }
> }

You are right. Type.GetType should only look for the Type (if not fully
qualified) in the calling assembly and in corlib. Currently it searches
all the loaded assemblies.

I'll fix it.

Thanks.

-Gonzalo