diff options
author | jfrijters <jfrijters> | 2011-01-20 17:31:10 +0300 |
---|---|---|
committer | jfrijters <jfrijters> | 2011-01-20 17:31:10 +0300 |
commit | 175af3395c794f9085c9c814ee682cb9b391924f (patch) | |
tree | d0468e1caddc0add5c272883e38bee824059eed9 /reflect/Type.cs | |
parent | 4eb105478e82932e60be28b1eb22bd50f59f9f81 (diff) |
Move missing type support into universe and optionally allow missing types to be resolved inside all Assemblies.
Diffstat (limited to 'reflect/Type.cs')
-rw-r--r-- | reflect/Type.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/reflect/Type.cs b/reflect/Type.cs index 6cc25c4c..e47cd60b 100644 --- a/reflect/Type.cs +++ b/reflect/Type.cs @@ -747,13 +747,13 @@ namespace IKVM.Reflection return GetConstructor(bindingAttr, binder, types, modifiers); } - internal virtual Type ResolveNestedType(TypeName typeName) + internal Type ResolveNestedType(TypeName typeName) { - return FindNestedType(typeName); + return FindNestedType(typeName) ?? Module.universe.GetMissingType(Module, this, typeName); } // unlike the public API, this takes the namespace and name into account - internal Type FindNestedType(TypeName name) + internal virtual Type FindNestedType(TypeName name) { foreach (Type type in __GetDeclaredTypes()) { |