diff options
author | jfrijters <jfrijters> | 2011-01-23 11:12:13 +0300 |
---|---|---|
committer | jfrijters <jfrijters> | 2011-01-23 11:12:13 +0300 |
commit | 209830e5fe68fc938e87dbb055b61582439a9b40 (patch) | |
tree | 18a70a4949867ad08fac4806d15107557beb98af /reflect/Reader | |
parent | 2eb4346e4de0f85e51cd9cc464a0c18eea67d729 (diff) |
Add support for reflecting on assemblies without loading mscorlib (or with partial mscorlib) when missing type resolution is enabled.
Diffstat (limited to 'reflect/Reader')
-rw-r--r-- | reflect/Reader/ModuleReader.cs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/reflect/Reader/ModuleReader.cs b/reflect/Reader/ModuleReader.cs index 987244d4..8f83ad09 100644 --- a/reflect/Reader/ModuleReader.cs +++ b/reflect/Reader/ModuleReader.cs @@ -367,12 +367,7 @@ namespace IKVM.Reflection.Reader { Assembly assembly = ResolveAssemblyRef((scope & 0xFFFFFF) - 1); TypeName typeName = GetTypeName(TypeRef.records[index].TypeNameSpace, TypeRef.records[index].TypeName); - Type type = assembly.ResolveType(typeName); - if (type == null) - { - throw new TypeLoadException(String.Format("Type '{0}' not found in assembly '{1}'", typeName, assembly.FullName)); - } - typeRefs[index] = type; + typeRefs[index] = assembly.ResolveType(typeName); break; } case TypeRefTable.Index: |