Hello! The subject says all I wanted to ask. I have managed method that has array of integers as a parameter. When I call this method from unmanaged code it doesn't work.
.NET method that has int[] as a parameter doesn't work
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Bechir BejaouiRank #144 · 15.9K reputationPosted Dec 10, 2008, 4:16 AM EST
private void Method([MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.SysInt)]int[] x)
{
//TO DO: implement your code here
}