I want to pass Buy and Sell array from AFL to a COM object so I defined C# function as
I get type mismatch error and I am unable to figure out what is missing.
Code:
public void MarshalAsArray(
[In, MarshalAs(UnmanagedType.I4)] UInt32 size,
[In, Out, MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.R4, SizeParamIndex = 0)] float[] array
)
{
}