Introduction

Top  Next

Short description

 

Delphi2C# helps to convert Delphi source code to C#. Both languages are designed by the Danish software engineer Anders Hejlsberg and have a lot of concepts and even classes in common. However C# uses managed code while some basic units of the Delphi RTL heavily makes use of pointers. The core of the Delphi RTL is rebuilt for C# and some classes to simulate pointers are provided too. So the translation of "normal" user code works well. Nevertheless a manual post-processing of the produced code still will be required, thogh it is aim of the program to keep the amount of the post-processing as small as possible. Some principle flaws are listed here. There is some pre-translated code of the Delphi RTL.Due to copyright of the Delphi RTL, this code can only be delivered to customers who provide proof that they have a legitimate license for Delphi.

 

 

Delphi2C# is built on the experience with the earlier Delphi2Cpp. Apart from the syntactic differences between the two programming languages, the main differences between these converters are that there are no pointers and no type definitions in C#.

 

--

 

Delphi2C# helps convert Delphi source code into C#. Both languages were designed by the Danish software engineer Anders Hejlsberg and share many concepts and even several class libraries.

 

However, C# uses managed code, whereas important parts of the Delphi RTL make extensive use of pointers. Therefore, the core parts of the Delphi RTL are rebuilt for C#, and additional helper classes are provided to simulate pointer behavior where necessary. As a result, the translation of typical user code generally works well.

 

Nevertheless, manual post-processing of the generated code is still required, although the goal of Delphi2C# is to keep the amount of manual work as small as possible. Some fundamental limitations are listed  here.

 

A partially pre-translated version of the Delphi RTL is available. Due to copyright restrictions of the Delphi RTL, this code can only be provided to customers who can prove that they own a valid Delphi license.

 

Delphi2C# is based on the experience gained from the earlier Delphi2Cpp project. Apart from the syntactic differences between the two target languages, one of the main differences between these converters is that C# does not support pointers or native type definitions in the same way as C++.

 

Availability

 

The current version of Delphi2C# and the additional code can be obtained using the contact information on the  TextTransformer websites:

 

https://www.texttransformer.com/Contact_en.html

 

https://www.texttransformer.de/Contact_ge.html

 

 

 



This page belongs to the Delphi2C# Documentation

Delphi2C# home  Content