是否有C#code转换成Java code的有效工具? [英] Is there an effective tool to convert C# code to Java code?
问题描述
有没有C#code转换成Java code的有效工具?
Is there an effective tool to convert C# code to Java code?
推荐答案
我从来没有遇到过C# - > Java的转换工具。语法是很容易的,但框架是截然不同的。即使有一个工具,我会强烈建议反对。我曾在几个迁移项目工作,并不能说强调不够,虽然转换似乎是一个不错的选择,转化项目的永远永远永远的交上钱坑。这不是一个快捷方式,你最终得到的是code,是不是可读的,并没有考虑目标语言的优势。从个人的经验来讲,假设一个重写是便宜的选择。
I have never encountered a C#->Java conversion tool. The syntax would be easy enough, but the frameworks are dramatically different. Even if there were a tool, I would strongly advise against it. I have worked on several "migration" projects, and can't say emphatically enough that while conversion seems like a good choice, conversion projects always always always turn in to money pits. It's not a shortcut, what you end up with is code that is not readable, and doesn't take advantage of the target language. speaking from personal experience, assume that a rewrite is the cheaper option.
这篇关于是否有C#code转换成Java code的有效工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!