public void SetOptParTypes(Type[] pars) { if (pars == null) { sig.numOptPars = 0; return; } sig.optParTypes = pars; sig.numOptPars = (uint)sig.optParTypes.Length; }