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:
Diffstat (limited to 'reflect/MethodInfo.cs')
-rw-r--r--reflect/MethodInfo.cs13
1 files changed, 1 insertions, 12 deletions
diff --git a/reflect/MethodInfo.cs b/reflect/MethodInfo.cs
index 40ca321c..6bbdb5f2 100644
--- a/reflect/MethodInfo.cs
+++ b/reflect/MethodInfo.cs
@@ -109,18 +109,7 @@ namespace IKVM.Reflection
public bool __TryGetImplMap(out ImplMapFlags mappingFlags, out string importName, out string importScope)
{
- Module module = this.Module;
- foreach (int i in module.ImplMap.Filter(GetCurrentToken()))
- {
- mappingFlags = (ImplMapFlags)(ushort)module.ImplMap.records[i].MappingFlags;
- importName = module.GetString(module.ImplMap.records[i].ImportName);
- importScope = module.GetString(module.ModuleRef.records[(module.ImplMap.records[i].ImportScope & 0xFFFFFF) - 1]);
- return true;
- }
- mappingFlags = 0;
- importName = null;
- importScope = null;
- return false;
+ return Module.__TryGetImplMap(GetCurrentToken(), out mappingFlags, out importName, out importScope);
}
public ConstructorInfo __AsConstructorInfo()