本文介绍了如何导出C#方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们如何导出C#方法?
How can we export C# methods?
我有一个dll,我想用ctypes模块使用Python语言的方法。
因为我需要使用ctypes模块,我需要导出C#方法使它们在Python中可见。
I have a dll and I want to use its methods in the Python language with the ctypes module.Because I need to use the ctypes module, I need to export the C# methods for them to be visible in Python.
那么,如何导出C#方法(像在C ++中一样)?
So, how can I export the C# methods (like they do in C++)?
推荐答案
与普遍的信念相反,这个可能是。
请参阅。
Contrary to popular belief, this is possible.
See here.
这篇关于如何导出C#方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!