C#转JAVA转换器? [英] C# to JAVA converter?

查看:449
本文介绍了C#转JAVA转换器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

刚刚读到一个在C#工作的人然后决定切换到

java(因为他想在多个平台上运行他的应用程序,包括
linux) 。他提到有人应该将#c转换为Java转换器。


今天有没有这样的东西?


几乎肯定没有市场它现在(因为还没有很多成熟的c#项目还没有b $ b),但是从c#的变动来看,它可能是中期未来的b $ b到java

加速。

just read about a person who did work in C# then decided to switch to
java (because he wanted to run his apps in multiple platforms, inc
linux). he mentioned that someone should market a c# to Java converter.

is there any such thing today?

there is almost surely no market for it right now (since there are not
that many mature c# projects around yet), but it might be something to
look at in the medium term future when movements from c# to java
accelerate.

推荐答案

" asj" < k@xx.com>在消息新闻中写道:3F *********** @ xx.com ...
"asj" <k@xx.com> wrote in message news:3F***********@xx.com...
刚看过一个在C#工作的人然后决定切换到
java(因为他想在多个平台上运行他的应用程序,包括linux)。他提到有人应该将c#推向Java转换器。


这将是一个很高的订单。在基础设施和使用方面,Java基类与.NET基本类完全不同。

今天有没有这样的东西?
just read about a person who did work in C# then decided to switch to
java (because he wanted to run his apps in multiple platforms, inc
linux). he mentioned that someone should market a c# to Java converter.
This would be a tall order. The Java base classes are totally different
than the .NET ones in terms of heirarchy and use.
is there any such thing today?




如果有,它很可能会产生糟糕的代码。将Java转换为C#使用

自动化工具,由于上述原因,很可能导致一个臃肿的混乱。由熟练的编码人员手动转换(即同时知道Java

和C#井)可能是目前转换的最佳方法。这样一个

工具在几代发布后可能是可行的,但我怀疑它是否可以与b兑换手相比。


只是我的



If there is, it most likely produces poor code. Converting Java to C# using
an automated tool, for the reasons noted above, would most likely lead to a
bloated mess. Converting by hand by a skilled coder (i.e. knows both Java
and C# well) is probably currently the best method for conversion. Such a
tool might be viable after a few generations of releases, but I doubt it
could rival hand conversion.

Just my


.02 ...
.02...


你试过吗?我想知道它是否可以处理不安全的代码。


Yves
Did you try it? I wonder if it can handle unsafe code.

Yves
有一个MSIL到Java源代码转换器:
< 语言模块采用.Net应用程序的IL(中间语言)代码并将其转换为Java源代码。该模块可以作为Visual Studio.NET的插件运行,也可以作为命令行可执行文件运行。运行时模块复制.NET类库提供的功能。所有与.NET一起提供的库(包括ADO.NET,XML,SOAP等类)都是使用Java语言开发的。'''

< a rel =nofollowhref =http://www.stryon.com/target =_ blank> http://www.stryon.com/ 有更多相关信息。
-
__________
| im | yler http://timtyler.org/ ti*@tt1.org
There''s a MSIL to Java source code convertor:

``The language module takes the .Net application''s IL (intermediate
language) code and converts it to the Java source code. This module can
be run as a plug-in for Visual Studio.NET, or as a command line
executable. The runtime module replicates the functionality provided by
the .NET class libraries. All the libraries that come with .NET
(including classes such as ADO.NET, XML, SOAP) have been developed
using the Java language.''''

http://www.stryon.com/ has more info about this.
--
__________
|im |yler http://timtyler.org/ ti*@tt1.org



这篇关于C#转JAVA转换器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆