如何导出C#的方法呢? [英] How to export C# methods?

查看:199
本文介绍了如何导出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#的方法呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆