Types

Top  Previous  Next

What is translated > Types

 

There are built-in types in Delphi and also new types can be defined in sections of a source file which begin with the type keyword.

The most simple form of a type definition is just to define another name for an existing type. E.g.:

 

WCHAR = WideChar;

 

var

  c : WCHAR;

 

In C# there is no true equivalent of such a type definition. Delphi2C# ignores such definitions and if an identifier is found which is the name of a type Delphi2C# takes and outputs that name. From the three lines of code above just remains:

 

char w;

 

 

Other types that can be defined are:

 

Records, Classes and Interfaces

Arrays

Enumerated types

Ranges

Sets

 

 



This page belongs to the Delphi2C# Documentation

Delphi2C# home  Content