I have the following code in C++ which I need to be able to call from C#:
struct Inner { double data1; double data2; }; struct Outer { double data3; SAF
Did you try this?
[StructLayoutAttribute (LayoutKind.Sequential)] public struct Outer { public double data3; [MarshalAsAttribute (UnmanagedType.SafeArray, SafeArrayUserDefinedSubType=typeof(Inner))] public Inner [] innerData; }