private void RunScript(Curve C, ref object max, ref object min) { max = C.MaxCurvaturePoints(); min = C.InflectionPoints(); }