Passing array parameter to C# function

I try to call this C# function from Javascript:
“public void AddToBuffer(float[ ] to)”
but I always get an error:
MissingMethodException: Method not found: ‘MainForm.AddToBuffer’.

I tried also with “int” and I get the same error.
If I try with “byte” I don’t get the error but I’d prefer using float or int…

Can someone help me, please?

Could you provide some more code perhaps?