IMethodDefinition Extension

Location

Instance Methods


SetBody

SetBody method for the automatically generated statement tree delegate. This method can be used to replace the body of a compiled method, or to add code around the original body:

 

method SetBody(aServices: IServices; Code: StatementDelegate)

 

void SetBody(IServices aServices, StatementDelegate Code)

 

func SetBody(_ aServices: IServices, _ Code: StatementDelegate)

 

void SetBody(IServices aServices, StatementDelegate Code)

 

Sub SetBody(aServices As IServices, Code As StatementDelegate)

Parameters:

  • aServices: services instance
  • Code: code to replace the statement with