This is a c code. I want to create equivalent code in c# Struct { unsigned char abc[2][8]; unsigned char efg[2][8]; } How can I declare this in c#? [StructLayout(LayoutKind.Explicit)] //[StructLayout(LayoutKind.Sequential)] public struct test { [FieldOffset(0)] [MarshalAs(UnmanagedType.ByValArray, SizeConst =8)] public byte[,] abc; } Can anyone tell Is this declaration is right or not?? Thanks..
public struct test { [FieldOffset(0)] [MarshalAs(UnmanagedType.ByValArray, SizeConst =8)] static byte[,] abc = new byte[2, 2]; }
byte
public byte[,] abc;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)