Click here to Skip to main content
13,897,313 members
Rate this:
Please Sign up or sign in to vote.
See more:
Using python script I want to convert my C# code into Python code. Is there any library in Python to convert C# program? Any help with this would be much grateful

What I have tried:

I used Iron Python which supports .NET framework but I could not convert the C# code to python code.
Updated 22-Feb-19 20:39pm
Richard MacCutchan 6-Aug-18 9:33am
Converting code from one language to another is never a simple process as there are too many differences. The conversion process would need to be almost as comprehensive as the compiler. It would probably be easier and quicker to do it by hand.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

There is no conversion tool, but there is IronPython[^] you can try.
Member 13815244 8-May-18 0:48am
Using IronPython is that possible to convert the entire code?
Dave Kreskowiak 8-May-18 8:24am
No, it's not a code converter. It's Python for .NET.

There is no code converter. If you want it converted, you're going to have to understand exactly what the C# code is doing and write the Python code by hand.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web04 | 2.8.190306.1 | Last Updated 23 Feb 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100