c++code-generationcode-migration

Are there any tools for porting c++ code to c# code?


I have a couple c++ utilities that I would like to port over to dot net. I was wondering if there are tools for porting a c++ application to c#?

I imagine that any automated tool would make a mess of any code, so perhaps, I should also be asking if this is a good idea or not?


Solution

  • The better question is why would you ever just port working code without gaining added value (ie new features)? The effort will almost cetainly be harder and take longer than you expect. Better, use the many interop capabilities of .Net to call your c++ code from C#. Focus on adding new features in C#, but don't waste your time porting working code.