How to call the CreateParameter method in C#

Hi,
I’m quite new with C# scripting, and I’m trying to create my own .gha component from VS.
I wish to have variable inputs by clicking the little “+” on the component (something like the “Merge” component), and I found the IGH_VariableParameterComponent interface seems to be what I need. As a C# beginner, I’d like to know how (and where) to call the methods? An example of script will be of great help! Thanks in advance!

Iris