Simple C# syntax question (solved)

image

This describes what I want to do. Boolean ‘first’ is already defined outside the ‘foreach’ loop. I want to start an arc ‘a’, look at boolean ‘first’ and assign different arcs to ‘a’.
What i wrote gave me this error
image
…and line 77 is the 4th line in my screenshot.

a = new Arc(s, crv.TangentAt(crv.Domain.T0), pt);
is what you want to use

Thanks Steve!
Here it is again. I’m fooled by the new keyword. It’s needed wherever I instantiate a class isn’t it?

Yes, it is needed