如何将参数作为参考传递MethodInfo.Invoke
?
这是我要调用的方法:
private static bool test(string str, out byte[] byt)
我试过这个但我失败了:
byte[] rawAsm = new byte[]{};
MethodInfo _lf = asm.GetType().GetMethod("test", BindingFlags.Static | BindingFlags.NonPublic);
bool b = (bool)_lf.Invoke(null, new object[]
{
"test",
rawAsm
});
返回的字节为空。