c# - 如何导出 C# 方法?

标签 c# python methods export python.net

我们如何导出 C# 方法?

我有一个 dll,我想在 Python 语言中通过 ctypes 模块使用它的方法。 因为我需要使用 ctypes 模块,所以我需要导出 C# 方法以便它们在 Python 中可见。

那么,我该如何导出 C# 方法(就像它们在 C++ 中所做的那样)?

最佳答案

与流行的看法相反,这可能的。
参见 here .

关于c# - 如何导出 C# 方法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2082159/

相关文章:

c# - 当集成测试需要密码时,如何保证密码安全?

python - Python 中的相对导入

python - MySQL 数据库被 Django 查询命中太多次

c++ - "overloaded member function not found"引用

c# - 语句不能存在于方法之外?

c# - 自定义异常类

c# - 说明如何使用 FirstDisplayedScrollingRowIndex

python - 如何设置使用 pipelinev 运行 pytest 的 GitHub 操作?

javascript - jQuery - 顺序运行多个方法

c# - .net c# 中的程序集排序