.NET CLR InternalCall

你离开我真会死。 提交于 2019-12-07 03:19:31

问题


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


回答1:


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.




回答2:


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



来源:https://stackoverflow.com/questions/1317861/net-clr-internalcall

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!