public override global::System.Object invoke(java.lang.Object n1, org.xmlvm._nArrayAdapter <global::System.Object> n2) { org.xmlvm._nMemberInfoAdapter <global::System.Reflection.MethodInfo, java.lang.reflect.Method._nImpl> adapter = (org.xmlvm._nMemberInfoAdapter <global::System.Reflection.MethodInfo, java.lang.reflect.Method._nImpl>) this._faddress; global::System.Reflection.MethodInfo nativeMethodInfo = adapter.getMemberInfoAdaptee(); global::System.Reflection.ParameterInfo[] nativeParameterInfos = nativeMethodInfo.GetParameters(); object[] methodNativeParameters = n2.getCSharpArray(); for (int i = 0; i < methodNativeParameters.Length; i++) { methodNativeParameters[i] = org.xmlvm._nTIB.unboxIfPrimitive((java.lang.Object)methodNativeParameters[i], nativeParameterInfos[i].ParameterType); } object returnValue = nativeMethodInfo.Invoke(n1, methodNativeParameters); returnValue = org.xmlvm._nTIB.boxIfPrimitive(returnValue, nativeMethodInfo.ReturnType); return(returnValue); }
public override global::System.Object newInstance(org.xmlvm._nArrayAdapter <global::System.Object> n1) { org.xmlvm._nMemberInfoAdapter <global::System.Reflection.MethodInfo, java.lang.reflect.Constructor._nImpl> adapter = (org.xmlvm._nMemberInfoAdapter <global::System.Reflection.MethodInfo, java.lang.reflect.Constructor._nImpl>) this._faddress; global::System.Reflection.MethodInfo jConstructorInfo = adapter.getMemberInfoAdaptee(); global::System.Type nativeType = jConstructorInfo.DeclaringType; object resultObj = global::System.Activator.CreateInstance(nativeType); object[] jConstructorParameters = n1.getCSharpArray(); global::System.Reflection.ParameterInfo[] parameterInfos = jConstructorInfo.GetParameters(); for (int i = 0; i < jConstructorParameters.Length; i++) { jConstructorParameters[i] = org.xmlvm._nTIB.unboxIfPrimitive((java.lang.Object)jConstructorParameters[i], parameterInfos[i].ParameterType); } jConstructorInfo.Invoke(resultObj, jConstructorParameters); return(resultObj); }