简体   繁体   English

我是否需要 C# 来创建要在 IronPython 中使用的 dll?

[英]Do I need C# to create a dll to be used in IronPython?

I'd like to call C# functions from IronPython.我想IronPython 调用 C# 函数。 I've read some topics about it, and it seems to follow these steps:我已经阅读了一些关于它的主题,它似乎遵循以下步骤:

  1. Create a dll from the C# functions从 C# 函数创建一个 dll
  2. Use clr.AddReference使用 clr.AddReference
  3. Use your function from IronPython使用 IronPython 中的函数

My noob question is: do I need to have my source code in C# in order to create the dll?我的菜鸟问题是:我是否需要在 C# 中使用我的源代码才能创建 dll? Or is C++ ok?或者 C++ 可以吗? Why?为什么?

Thanks a lot, Arnaud非常感谢,阿诺

任何基于 .NET 的语言都可用于生成 DLL,您可以在 IronPython 代码中使用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM