Is it possible to declare struct array field in another struct?
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public unsafe struct A
{
}
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public unsafe struct B
{
public fixed A FieldA[123];
}
Visual Studio tells that FieldA can only be an array of any simple type not a struct. Is there any solution/workaround here?