Quote:
ReDim Inputs(1 To 1, 1 To NbrInputs&)
That creates a two-dimensional array with a non-zero lower bound. To duplicate that in C#, you would need:
Array Inputs = Array.CreateInstance(
typeof(double),
new[] { 1, NbrInputs },
new[] { 1, 1 });
for (int i = 1; i <= NbrInputs; i++)
{
double value = Convert.ToDouble(InRange[i].Value);
Inputs.SetValue(value, 1, i);
}
It's not clear from the code you've posted what needs to be passed to the
Outputs
parameter. You would need to check the documentation of the third-party code to see if that gives you any clues.