ISurface::IntersectCurve2 Constructor Problem

Hello together,

I need to find the intersection point between a plane surface and an edge/curve. The plan was to do it with the method ISurface::IntersectCurve2 which can be found here: 2012 SolidWorks API Help - IIntersectCurve2 Method (ISurface)

I am programming in C# so the method expects ref double and out double as input parameters. But there also stands that it needs to be an array of doubles which can't be the case or am i wrong? I am kind of new to programming. The same goes for the also needed 2012 SolidWorks API Help - GetIntersectCurveCount2 Method (ISurface)

There is an example in the help 2012 SolidWorks API Help - Get Intersecting Face and Edge Example (VBA)  but the constructors doesn't match each other. I also couldn't figure out why vCurveBounds is in brackets. It is the old version of the function but it needs the same input. I hope you can help me with a solution for my problem or another method.

Sincerely

Dennis

SolidworksApi macros