, Struct BBB CCC, , BBB CCC, DDD.
struct DDD
{
[MarshalAsAttribute(UnmanagedType.ByValArray, SizeConst = 512, ArraySubType = UnmanagedType.I1)]
byte[] x;
}
struct BBB
{
DDD x;
public BBB(){
x = new DDD();
}
}
struct CCC
{
DDD x;
ulong y;
ulong z;
public CCC(){
x = new DDD();
}
}
[StructLayout(LayoutKind.Explicit)]
struct AAA
{
[FieldOffsetAttribute(0)]
BBB a;
[FieldOffsetAttribute(0)]
CCC b;
public AAA(){
a = new BBB();
b = new CCC();
}
}
, - DDD, , x, byte [], , , , , , int, ...
, ,
,
.