identifying code that compiles in both Java and C# but runs differently

前端 未结 4 583
轻奢々
轻奢々 2021-01-06 07:27

I am having to port code from Java to C# (and soon the other way round) by copying and pasting and then editing compiler errors. (Please accept that this is necessary; I can

4条回答
  •  孤街浪徒
    2021-01-06 08:22

    Perhaps the Java Language Conversion Assistant Wizard could assist you here?

    http://msdn.microsoft.com/en-us/library/7tatw8a2(VS.80).aspx

    In addition I would suggest something like Resharper or another refactoring tool to take advantage of the C# language features and make your code more efficient and readable.

    edit:

    V3 is available with VS2005, read this if you dont seem to have it installed: http://natarajana.com/jlca.aspx

提交回复
热议问题