Uses clauses

Top  Previous  Next

What is translated > File layout > Uses clauses

 

Delphi uses clauses become to using directives in C#. For example:

 

unit test;

 

interface

 

uses System.SysUtils;

...

 

 

becomes to:

 

using System.SysUtils;

using static System.SysUtils.SysUtilsInterface;

using static test.testInterface;

using static test.testImplementation;

using System;

using static System.SystemClass;

 

namespace test

{

 ...

 

There are two using directives for all used files, because all files that were translated from Delphi with Delphi2C# contain an extra class with the constants and routines of the interface part of the original file, as described for the general file layout.

 

There is an option to create a common file of global using directives instead of inserting them into the according single files.

 

 

 

 

 

 

 



This page belongs to the Delphi2C# Documentation

Delphi2C# home  Content