J
jack
Hi,
Is there anyway to have such a structure in c# (safe and managed)?
struct MyStruct1
{
Byte data[10];
}
i.e., I would like to define a structure that's 10 bytes long.
Now, let's look at this struct:
struct MyStruct2
{
[MarshalAs(UnmanagedType.ByValArray, SizeConst=10)]
Byte[] data;
}
What does it mean?
Thanks
Jack
Is there anyway to have such a structure in c# (safe and managed)?
struct MyStruct1
{
Byte data[10];
}
i.e., I would like to define a structure that's 10 bytes long.
Now, let's look at this struct:
struct MyStruct2
{
[MarshalAs(UnmanagedType.ByValArray, SizeConst=10)]
Byte[] data;
}
What does it mean?
Thanks
Jack