I think is mostly a dumb C# question as I am new to the language but I have banged my head against a wall long enough. I am trying to invoke a GH component in my custom component. I set up the delegate and then invoke it;
Rhino.NodeInCode.ComponentFunctionInfo TanCurveInfo = Rhino.NodeInCode.Components.FindComponent(“TangentCurve”);
var TanCurve = TanCurveInfo.Delegate;
…
object OutCurve = TanCurve.DynamicInvoke(Pnts, Tngnt, .5, 3);
OutCurve contains the 3 output arguments. I want to get just the curve (0th argument) out of that and into a curve type variable in my workspace. How do I do that? I’m going nuts. When I debug I can see the type is {object[3]} and each of those objects is a list. someone please tell me what obvious syntax thing I am missing…
Sam