【发布时间】:2010-10-21 04:26:57
【问题描述】:
我需要能够从 C++ 调用任意 C# 函数。 http://www.infoq.com/articles/in-process-java-net-integration 建议使用 ICLRRuntimeHost::ExecuteInDefaultAppDomain() 但这仅允许我调用具有这种格式的方法:int method(string arg)
调用任意 C# 函数的最佳方法是什么?
【问题讨论】:
-
任意代码是什么意思?可实现的最细粒度不是在功能级别吗?
-
从.NET 5.0开始,就有了使用共享库的跨平台方式:请看this answer。