private FillInExplicitInterfaceMethods ( IKVM.Reflection.MethodInfo interfaceMethods, IKVM.Reflection.MethodInfo targetMethods ) : void | ||
interfaceMethods | IKVM.Reflection.MethodInfo | |
targetMethods | IKVM.Reflection.MethodInfo | |
Résultat | void |
internal void FillInExplicitInterfaceMethods(MethodInfo[] interfaceMethods, MethodInfo[] targetMethods)
{
__MethodImplMap impl = __GetMethodImplMap();
for (int i = 0; i < impl.MethodDeclarations.Length; i++)
{
for (int j = 0; j < impl.MethodDeclarations[i].Length; j++)
{
int index = Array.IndexOf(interfaceMethods, impl.MethodDeclarations[i][j]);
if (index != -1 && targetMethods[index] == null)
{
targetMethods[index] = impl.MethodBodies[i];
}
}
}
}