SamSol
SamSol

Reputation: 2881

Convert Java to C# or VB.net to C#

Is it possible to convert code from Java to C# or VB.net to C#?

Upvotes: 2

Views: 10925

Answers (5)

Pasan Eeriyagama
Pasan Eeriyagama

Reputation: 279

I hope this could be useful. But it might not work with complex code structures..

https://varycode.com/converter.html

Upvotes: 0

EmrahIlker
EmrahIlker

Reputation: 135

For Java to C# &VB.Net, you can also use Tangible Java to VB & C# Converter. http://tangiblesoftwaresolutions.com

Upvotes: 0

jsoques
jsoques

Reputation: 76

If you know a little bit of both C# and Java, converting Java to C# by hand would be the best route to go. That's what I did for a relativley medium sized Java project. Then you can use Sharpdevelop (http://www.icsharpcode.net/opensource/sd/) to convert C# to VB and vice versa.

Upvotes: 0

Emmanuel
Emmanuel

Reputation: 3583

Try Telerik Code Converter for a free C#/VB code converter. I've used it - it isn't bad. There are also many commercial ones with lots of features.

Java and C# are very similar and converting between the two (and to/from VB) is possible. A quick search should reveal many commercial options.

Upvotes: 1

DEHAAS
DEHAAS

Reputation: 1294

You could decompile the VB.NET code using Reflector (http://www.red-gate.com/products/reflector/) to get it as C#. You might also try someting like this online converter http://www.developerfusion.com/tools/convert/vb-to-csharp/

Upvotes: 2

Related Questions