I am transferring the Java library in C #. I use Visual Studio 2008, so I do not have a discontinued Microsoft Java Language Conversion Assistant (JLCA) program.
My approach is to create a new solution with a similar project structure in the Java library and then copy the Java code into a C # file and convert it to a valid C # line by line. Given that I find Java easy to read, the subtle differences in the two languages surprised me.
Some things were easy to port (namespaces, inheritance, etc.), but some things were unexpectedly different, such as the visibility of private members in nested classes, overriding virtual methods, and behavior of built-in types. I do not quite understand these things, and I am sure that there are many other differences that I have not yet seen.
I have a long way to go about this project. What thumb rules can I apply during this conversion to properly manage language differences?
source
share