I am trying, so far without success, to pass an entire array from FORTRAN to C#.NEt. I understand that a .NET array must be created and instantiated in FORTRAN and that I must assign values to each of its values from a FORTRAN array by adjusting for i = 0 versus i = 1 initial index. The question is how to pass this array to C#. I tried
ASSEMBLY_EXTERNAL('System.Array.Copy') :: ArrayCopy
My idea was to copy the C# array created in the FORTRAN subroutine to a specific C# array passed as an argument to the fortran subroutine. Is this the best way of doing this?
Secondly, it looks as if using the instance method Array.SetValue I can assign to each element of an array but it would be better if I could use the static method Array.Copy or else another, more intelligent way of doing the same thing. I would appreciate any guidance.