In C++ you can use __declspec( align( # ) )
declarator to control the alignment of user-defined data. How can do this for C#. I have two procedures written on Assembler in my dll. Arguments for procedures (two arrays) should be aligned on 16 bytes. For C++ it works fine.
I just used declarations
__declspec( align( 16 ) )
double a[2]={10.2,10.6};