Type "%1!s!.%2!s!" is marked for native serialization, but field "%3!s!" of type "%4!s!.%5!s!" is of type "%6!s!.%7!s!", ...

Type "%1!s!.%2!s!" is marked for native serialization, but field "%3!s!" of type "%4!s!.%5!s!" is of type "%6!s!.%7!s!", which is not marked with "LayoutKind.Sequential". Native serialization requires the type to be marked with "LayoutKind.Sequential".