Make input parameter as optional in C# script

Hi,
short easy question:
is it possible to make in a C# script an input parameter optional? In other words, is there by scripting an equivalent to:

pManager[1].Optional = true;

which we use in VS writing a plugin?

this.Component.Params.Input[index].Optional = true;
but by default C# params are optional, check it:

foreach(var param in this.Component.Params.Input)
  Print("is optional: " + param.Optional);

Thank you