Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/ikvm-fork.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjfrijters <jfrijters>2011-01-13 13:44:44 +0300
committerjfrijters <jfrijters>2011-01-13 13:44:44 +0300
commit4de90713f86a263c4c51b6aa4ca8b650b98e6455 (patch)
treeeefa17743f6b23027188094c01f3694ea6d21ca9 /reflect/Type.cs
parent7f1f16f7cc65883e046220e03d417037e037d0db (diff)
Added support for magic missing assemblies that resolve missing types to allow (some) reflection on assemblies with missing dependencies.
Diffstat (limited to 'reflect/Type.cs')
-rw-r--r--reflect/Type.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/reflect/Type.cs b/reflect/Type.cs
index 6d0caae7..ca8fc9da 100644
--- a/reflect/Type.cs
+++ b/reflect/Type.cs
@@ -765,6 +765,11 @@ namespace IKVM.Reflection
}
}
+ internal virtual Type ResolveNestedType(string ns, string name)
+ {
+ return GetNestedTypeCorrectly(ns == null ? name : ns + "." + name);
+ }
+
// unlike the public API, this takes the namespace and name into account
internal Type GetNestedTypeCorrectly(string name)
{
@@ -1150,6 +1155,11 @@ namespace IKVM.Reflection
get { return this.DeclaringType != null; }
}
+ public bool __IsMissingType
+ {
+ get { return this is MissingType; }
+ }
+
public Type MakeArrayType()
{
return ArrayType.Make(this, null, null);