官方案例: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);
本文详细介绍了ILRuntime环境下如何进行布尔型、整型以及List类型的数据转换。通过示例代码展示了在ILRuntime中获取和操作这些基本类型的方法,对于理解和使用ILRuntime进行跨域调用具有指导意义。
2126

被折叠的 条评论
为什么被折叠?



