Calls of inherited procedures and functions

Top  Previous  Next

What is translated > Routines > Calls of inherited procedures and functions


For each class, which inherits from another a typedef is inserted into the C# code, like


class foo: public bar {

  typedef bar inherited;


So, if in Object Pascal "inherited" is followed by a method identifier, it can be translated easily to C#.  ->  inherited::foo()


When "inherited" has no identifier after it, it refers to the inherited method with the same name as the enclosing method. In this case, inherited can appear with or without parameters; if no parameters are specified, it passes to the inherited method the same parameters with which the enclosing method was called. For example,


procedure : BOOLEAN); 







void __fastcall foo::bar ( bool b )


  inherited::bar( b );



This page belongs to the Delphi2C# Documentation

Delphi2C# home  Content