且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

C#转JAVA转换器?

更新时间:2023-02-07 18:30:49

" 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源代码转换器:

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