官方案例:http://ourpalm.github.io/ILRuntime/public/v1/guide/redirection.html
布尔类型:
ILRuntime.Runtime.Enviorment.AppDomain domain = intp.AppDomain;
StackObject* ptr_of_this_method;
ptr_of_this_method = ILIntepreter.Minus(esp,1);
System.Boolean boolType = ptr_of_this_method->Value == 1;
int 类型
ILRuntime.Runtime.Enviorment.AppDomain domain = intp.AppDomain;
StackObject* ptr_of_this_method;
ptr_of_this_method = ILIntepreter.Minus(esp,1);
var intType = ptr_of_this_method->Value;
List
ILRuntime.Runtime.Enviorment.AppDomain domain = intp.AppDomain;
StackObject* ptr_of_this_method;
ptr_of_this_method = ILIntepreter.Minus(esp,1);
System.Object[] paramList = (System.Object[])StackObject.ToObject(ptr_of_this_method, domain, mStack);