C# to Python converter

I have a large C# library that I need to convert to Python. Python is a customer requirement, I can not use any other language.

Any automatic C# to Python converter?

Edit: I need a pure Python solution. .Net is not an option for me.


Assuming IronPython will meet their requirement, SharpDevelop can do that for you. I have a feeling it will still be quite painful.

Here's a link:

http://community.sharpdevelop.net/blogs/mattward/archive/2009/05/11/ConvertingCSharpVBNetCodeToIronPython.aspx


You should convince your costumer that python language can interact with .Net using some libraries. It would be a waste of time to re write the whole library in python and then test the python code for any bugs.

There is a library called Python for .NET, by which you can call .net classes and functions inside your python code, you can create a wrapper code for calling the .Net code.

If you write a wrapper class, it would be just like calling python classes and functions to other python programmers.


如何http://www.developerfusion.com/tools/convert/csharp-to-python/

链接地址: http://www.djcxy.com/p/56618.html

上一篇: PHP iOS的AES加密

下一篇: C#到Python转换器