Closed_parens expected for out parameters in Grasshopper C#

Why would that happened? the syntax should be correct yet the line gives exception.

To add more context, C# component in grasshopper doesn’t seem to recognize the “out” parameter.

Grasshopper uses C# v4.0.30319, but Inline variable declaration was introduced in C# v7.0.

private void RunScript(Curve crv, Brep brp, ref object A)
{
  Curve[] crvs;
  Point3d[] pts;
  Intersection.CurveBrep(crv, brp, 0.01, out crvs, out pts);
}
3 Likes