views:

1304

answers:

4

I know CodeGear made BabelCode that uses the Code DOM to convert C# to Delphi for .NET. I am curious if there are any other similar tools to convert C# to Delphi Prism? If not, what is involved in using the Code DOM to create one (yeah, that is open ended!)

Update: This is now built into Delphi Prism. Just paste or import your C# and you have Oxygene aka Delphi Prism Code.

+3  A: 

One option I saw was to use .NET Reflector on the C# compiled assembly. It has an Oxygene syntax. That is kind of the long way around and not exactly optimal.

Jim McKeeth
not exactly optimal, but it does help.
skamradt
+1  A: 

Use BabelCode to convert your C# to Delphi, and then use Oxidizer to convert Delphi to Prism. Not a stellar idea, I realize, but it might at least be a little more automatable than going through Reflector. Good luck.

Rob Kennedy
Have you used this method?
Jim McKeeth
Nope! I tried BabelCode once or twice back when it was first introduced, and I've never used Oxidizer. Haven't even gotten around to trying Prism yet. Like I said: Good luck. :)
Rob Kennedy
I tried BabelCode with some newer C# code with LINQ syntax in it, and the output was blank. . . . .
Jim McKeeth
I guess that doesn't surprise me. LINQ didn't exist yet when BabelCode was made.
Rob Kennedy
Yeah, I haven't updated BabelCode in a long time -- since we stopped developing C#Builder in fact. That's where the guts for the service came from.
John Kaster
+6  A: 

It's in its early stages but Carlo just published a first revision of his open source "C# to Oxygene" tool:

http://code.remobjects.com/p/csharptoxy/

marc hoffman
FYI: This is now built into Delphi Prism. Just paste or import your C# and you have Oxygene aka Delphi Prism Code.
Jim McKeeth
A: 

"I know CodeGear made BabelCode that uses the Code DOM to convert C# to Delphi for .NET. I am curious if there are any other similar tools to convert C# to Delphi Prism?"

Delphi .NET and Delphi Prism are not the same thing?

Clay Shannon
No, they are not. Delphi Prism uses the Oxygene compiler provided by RemObjects and the Visual Studio shell IDE. It supports all the latest .NET technologies, but no VCL.NET. It also includes a number of additional database technologies, like DataSnap.NET, etc.
Jim McKeeth