compiling C# to Java byte code

  • Thread starter Thread starter Bootstrap Bill
  • Start date Start date
B

Bootstrap Bill

I heard there is an add on for Visual Studio .net that will allow C# to
create Java byte code. Does anyone have the URL for the project?
 
Bootstrap Bill said:
I heard there is an add on for Visual Studio .net that will allow C# to
create Java byte code. Does anyone have the URL for the project?

I haven't heard of any such thing, and I'd be surprised if it existed,
given that C# doesn't have checked exceptions, and *does* have
properties etc. It would have to be extremely limited, at least.

There *is* a Java to C# conversion tool in VS.NET 2003, however.
 
C# properties compile to a get_PropertyName... set_PropertyName internally.
So it wouldn't be too hard to make such a utility.

Thanks,
Shawn
 
Shawn B. said:
C# properties compile to a get_PropertyName... set_PropertyName internally.

True. Properties was a bad choice. Delegates and events are better
examples. You *could* possibly do something with interfaces, but it
would be truly foul (and you'd have to do something interesting for
delegates which ended up being static methods).
So it wouldn't be too hard to make such a utility.

Well, you'd need to know what to do with *all* the .NET types used by
the program. Even the J# converter doesn't do a brilliant job, and Java
1.1 was tiny compared with the .NET framework. Even if theoretically
possible, it would be nightmarishly difficult for a very small
audience, IMO.
 
Back
Top