简体   繁体   English

C#转氧气码转换器

[英]C# to Oxygene code converter

I know CodeGear made BabelCode that uses the Code DOM to convert C# to Delphi for .NET.我知道 CodeGear 制作了BabelCode ,它使用 Code DOM 将 C# 转换为 Delphi 用于 .NET。 I am curious if there are any other similar tools to convert C# to Delphi Prism?我很好奇是否还有其他类似的工具可以将 C# 转换为 Delphi 棱镜? If not, what is involved in using the Code DOM to create one (yeah, that is open ended!)如果不是,那么使用 Code DOM 创建一个涉及到什么(是的,这是开放式的!)

Update : This is now built into Delphi Prism.更新:这现在内置在 Delphi Prism 中。 Just paste or import your C# and you have Oxygene aka Delphi Prism Code.只需粘贴或导入您的 C#,您就有了 Oxygene 又名 Delphi 棱镜代码。

It's in its early stages but Carlo just published a first revision of his open source "C# to Oxygene" tool:它处于早期阶段,但 Carlo 刚刚发布了他的开源“C# to Oxygene”工具的第一个修订版:

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

One option I saw was to use .NET Reflector on the C# compiled assembly.我看到的一个选项是在 C# 编译程序集上使用 .NET Reflector。 It has an Oxygene syntax.它具有 Oxygene 语法。 That is kind of the long way around and not exactly optimal.这是一种很长的路要走,并不完全是最优的。

Use BabelCode to convert your C# to Delphi, and then use Oxidizer to convert Delphi to Prism.使用 BabelCode 将您的 C# 转换为 Delphi,然后使用Oxidizer将 Delphi 转换为 Prism。 Not a stellar idea, I realize, but it might at least be a little more automatable than going through Reflector.我意识到这不是一个好主意,但它至少可能比通过 Reflector 更自动化一些。 Good luck.祝你好运。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM