How should I convert Java code to C# code?

前端 未结 6 1341
天命终不由人
天命终不由人 2021-01-12 19:43

I\'m porting a Java library to C#. I\'m using Visual Studio 2008, so I don\'t have the discontinued Microsoft Java Language Conversion Assistant program (JLCA).

My a

6条回答
  •  没有蜡笔的小新
    2021-01-12 20:17

    Your doing it in the only sane way you can...the biggest help will be this document from Dare Obasanjo that lists the differences between the two languages:

    http://www.25hoursaday.com/CsharpVsJava.html

    BTW, change all getter and setter methods into properties...No need to have the C# library function just the same as the java library unless you are going for perfect interface compatibility.

提交回复
热议问题