views:

428

answers:

3

Duplicate:

Where can I find a Java to C# converter?
How should I convert Java code to C# code?

How can I convert Java code to C#?

All I really want is to convert JavaDocs from the Java source, though the entire source would be fine too.

I am using Visual Studio 2005.

+3  A: 

Have you tried JCLA?

George Stocker
+1 for driveby downvote on a perfectly good response
Alex Fort
@Alex Fort Yea. I'm proof positive that the FGITW can still get you downvoted.
George Stocker
+1  A: 

Read this article on the Java Language Conversion Assistant which will (mostly) translate Java to C#. Unfortunately, it is a bit buggy and some constructs will not convert well, so hope that you didn't use many of those (like I had). Good luck!

JoshJordan
yea, I used that one and I don't like it, ending up re-writing it the code anyway...
A: 

You could convert the Java code to CIL using IKVM, then convert the CIL to C# using Reflector.

RossFabricant