diff options
author | jfrijters <jfrijters> | 2011-03-08 10:47:45 +0300 |
---|---|---|
committer | jfrijters <jfrijters> | 2011-03-08 10:47:45 +0300 |
commit | 3ee54261f7b120b6482dbabb9e66ab4bd0cc63ab (patch) | |
tree | eeddc34693984c7bacb2e84e6c60c1aa66cb9c3d /reflect/Reader | |
parent | 602e60e74cf5bf23fe71a9cb710a853ba932de12 (diff) |
Added API extension Module.__GetReferencedTypes() to get the TypeRef table contents.
Diffstat (limited to 'reflect/Reader')
-rw-r--r-- | reflect/Reader/ModuleReader.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/reflect/Reader/ModuleReader.cs b/reflect/Reader/ModuleReader.cs index 75fcf870..3bbea378 100644 --- a/reflect/Reader/ModuleReader.cs +++ b/reflect/Reader/ModuleReader.cs @@ -955,6 +955,16 @@ namespace IKVM.Reflection.Reader return arr; } + public override Type[] __GetReferencedTypes() + { + Type[] arr = new Type[this.TypeRef.RowCount]; + for (int i = 0; i < arr.Length; i++) + { + arr[i] = ResolveType((TypeRefTable.Index << 24) + i + 1); + } + return arr; + } + internal override Type GetModuleType() { PopulateTypeDef(); |