зеркало из https://github.com/mono/ikvm-fork.git
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:
Родитель
600d3d00e3
Коммит
be1c5e9c38
|
@ -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)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче