Top  Previous  Next

What is translated > Routines


There are two kinds of routines in Delphi: procedures and functions. Both kinds may be declared first and defined later.


If a routine has no parameters in contrast to Delphi the calls of the routine in C# have to end with parenthesis.


foo;   ->  foo();


There are different kinds of parameters, which have to be translated accordingly. Sometimes parameters cannot be passed directly as in Delphi, but a temporary variable has to be created at fist, which then is passed.


Delphi nested routines also can be reproduced in C#.

This page belongs to the Delphi2C# Documentation

Delphi2C# home  Content