5个最优秀的Java和C#代码转换工具

毋庸置疑,Java是一门最受欢迎而且使用最广泛的编程语言,目前有超过9百万的Java开发者从事web服务的开发,Java以“编写一次,可在任何地方运行”而著称,同时这也是其大受欢迎的主要原因。

和Java类似,C#也是一门拥有很多现代化特性的编程语言,很多开发者处于其安全性和稳定性,会选择C#这个平台。本文介绍了几个最优秀的Java和C#代码转换工具,希望对开发者有所帮助。

1、Java Language Conversion Assistant

Java Language Conversion Assistant是一款最出色和最受欢迎的Eclipse插件,它可以用一些简单的语法实现Java代码转换成C#代码。有些语法可以忽略文件、忽略类、合并类,或者将特殊的方法翻译成.NET的事件和属性。

官方网站:http://www.microsoft.com/en-us/download/details.aspx?id=14349

2、Octopus .NET Translator

这是一个商业软件,不仅支持Java代码转换成C#代码,而且支持Java代码转换成C++,C#代码转换成VB.NET,以及VB.Net转换成C#。该软件主要提供一系列语法转换器,并且转换质量和速度都很不错。

官方网站:http://www.remotesoft.com/octopus/

3、Tangible Solution’s Java to C# Converter

这款Java转换C#的工具提供了商业版和免费版,免费版仅支持1000行的代码转换,但是这款软件的转换结果非常精确而且全面。该免费版软件可以将整个Java文件目录转换成C#文件,并且支持自定义设置,也可以添加注释。对任何一个C#初学者来说,它都是一款很不错的学习工具。

官方网站:http://www.tangiblesoftwaresolutions.com/Product_Details/Java_to_CSharp_Converter.html

4、XES – Java To C#

这款Java转换C#工具以使用方便而著称,该工具可以提供一个准备的转换结果,并且让转换恰到好处,这款工具对初学者来说相当的方便。

官方网站:http://www.euclideanspace.com/software/language/xes/userGuide/convert/javaToCSharp/index.htm

5、varycode

Verycode是一个最好的在线代码转换平台,支持对c#, VB, Java, Ruby , Python等编程语言之间的转换。

官方网站:https://www.varycode.com/

以上就是最棒的Java转换C#代码的工具和插件,它们可以帮助你实现准备翻译Java代码和C#代码,让你在两者之间有一个很好的过渡。

一个很强大的工具, 能将c#代码片段、文件甚至工程直接转换java代码,并能彻底解决外部引用的DLL问题,强的是支持c#工程的直接转换,生成的Java代码质量也很不错。软件已破解,去除了未注册版多只能转换1000行的限制,亲测可用!压缩包内含帮助文档,不过由于软件的使用很简单,帮助文档基本可以忽略。(小提示:如无法运行,请确认是否安装了.NET framework) 下面是一些英文介绍: C# to Java Converter features include: 1. Folder conversion: Entire folders of C# code files are converted to Java code files.(文件夹转换) 2. Code snippet and file conversion: Our snippet conversion accuracy is outstanding and does not require you to insert entire methods or classes. Heuristics are used to convert code fragments wit h missing declarations. (代码片段文件转换) 3. Full support for the latest .NET code syntax: Generics and other newer C# features are converted where possible to the Java equivalent.(全面支持新版的.NET语法) 4. Conversion options: You can specify numerous conversion options via our Options dialog. Code formatting options, custom type & member replacements, custom string replacements, and miscellaneous options. (可以指定转换规则) 5. File comparison feature: After converting a project or folder, you can compare original and converted files side-by-side. Comparing converted code to original code.(原代码转换代码的比较) 6. Running from the command line: C# to Java Converter can be launched directly for a specific project, folder, or file conversion from the command line. Command line.(命令行执行) 其他一些特点: 1. Converts all versions of C# code (2002, 2003, 2005, 2008, and 2010) (可以转换所有版本的C#代码) 2. Evaluates all referenced assemblies and .NET projects in order to resolve external references more completely.(能彻底解决外部引用的dll类库) 3. Converts C# ref parameters using Java generics 4. Superb conversions of all types of arrays 5. Handles the numerous coding alternatives and ambiguities of C# code 6. Flawless conversion of all aspects of inheritance and interfaces 7. Allows custom replacement of strings in the final converted code 8. Accurate even with poorly formatted C# code
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值