.NET CLR InternalCall

2019-04-27 11:44发布

Is there a way to host the .NET CLR runtime and register MethodImplOptions.InternalCall functions? (This is not a topic about P/Invoke)

标签: c# .net clr
2条回答
再贱就再见
2楼-- · 2019-04-27 12:26

IMetaDataImport is your best bet, but can't really vouch for that. This seems like a specific task for C++/CLI.

查看更多
地球回转人心会变
3楼-- · 2019-04-27 12:33

SSCLI code (specifically clr\src\vm\ecall.cpp) suggests that there is no way to register InternalCall methods, because the crucial gECClasses table is hardcoded.

查看更多
登录 后发表回答