Click here to Skip to main content
13,766,591 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.
Posted 7-May-18 2:21am
Updated 10-Nov-18 0:56am
Comments
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
 
good
Please Sign up or sign in to vote.

Solution 1

There is no conversion tool, but there is IronPython[^] you can try.
  Permalink  
Comments
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
Web06-2016 | 2.8.181114.1 | Last Updated 10 Nov 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

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