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" wrote in message news:3F***********@xx.com...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?
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...
Did you try it? I wonder if it can handle unsafe code.
Yves
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