Skip to content
This repository has been archived by the owner on Jul 8, 2022. It is now read-only.

How to contribute

Liam Barry edited this page Aug 23, 2019 · 1 revision

The easiest way to contribute is by contributing either an RPGLE built-in function or a system API.

Contributing a BIF

Inside of the Runtime/Functions/ directory is a folder called BIF. Each function inside of the BIF folder inherits the Function class which takes an object[] parameter, which is passed in from the RPG application.

The Function class has an Execute method which is the invoked method when the BIF is invoked from the RPG application:

class Trim : Function
{
    public override object Execute(object[] Parameters)
    {
    }
}

The Execute method can return any regular C# type and it'll be returned into the RPG application as expect. See some of the following examples:

The last part to making the BIF work is adding it to the Functions list in Functions.cs.

Don't forget to write unit tests for your new BIF too.

Clone this wiki locally