Using C # Code in IronPython

I am going to complete a .NET project: we need to create a program that uses some existing C # code, and I hope to use IronPython. (I am an experienced Python programmer, but a bit new to .NET.)

My question is: Is IronPython suitable for using mostly C # code, or would it be better to just use C #? If IronPython works well, are there any pitfalls to look for?

+3
source share
2 answers

You need to compile C # code into an assembly (DLL), which you can use in IronPython. Once you do this, IronPython can use this, like any other .NET assembly.

This is a common use case for IronPython.

+5

Windows , , IronPython.

  • Python, .NET. , , , .., .

  • Visual Studio . Notepad ++ - , . IDE, SharpDevelop. , VS2010, Ironpython .

  • Ironpython 2.7 .NET 4.0 .

  • WPF XAML , wx .

  • Ironpython exe

, .

  • Ironpython, CPython, .

  • Python, pyd, , Ironclad, .

  • -, Mono, , WPF.

  • . Ironpython 2.7 Beta 1 , Microsoft . MS . 2.7 RTM , 3.x.

+1

Source: https://habr.com/ru/post/1789828/


All Articles