How to change the input param by c# when the component has finished constructed?

we can modified the input param in RegisterInputParam,but when the component is constructed,we cannot modified them,because i try:

RegisterInputParam()
{
if(b)
{
    add param a1
}
else
{
    add param b1
}
}

this code doesnot works
so do you know how to change param when the component has finished constructed?
Thank you!

Inherit IGH_VariableParameterComponent , set this methods to false/returning nothing, and when you change b, replace (unregister + register) your params from Params.