Enum & Value type recognition fix.

In the portable runtime system.enum & valuetype seem to be in
System.Runtime and not in mscorlib any longer. This patch fixes that.
see: https://bugzilla.xamarin.com/show_bug.cgi?id=20180
This commit is contained in:
Mike Krüger 2014-05-30 09:30:25 +02:00
Родитель 600d3d00e3
Коммит be1c5e9c38
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -2040,6 +2040,7 @@ namespace IKVM.Reflection
{
if (this.Assembly == this.Universe.Mscorlib
|| this.Assembly.GetName().Name.Equals("mscorlib", StringComparison.OrdinalIgnoreCase)
|| this.Assembly.GetName().Name.Equals("System.Runtime", StringComparison.OrdinalIgnoreCase)
// check if mscorlib forwards the type (.NETCore profile reference mscorlib forwards System.Enum and System.ValueType to System.Runtime.dll)
|| this.Universe.Mscorlib.FindType(new TypeName(__Namespace, __Name)) == this)
{