Consider auto-generating the ref assembly while you are changing it.  - We get consistent alpha ordering (both at the type and member level)  - Fully qualified type name  - consistent "dummyPrimitive" naming  - new static vs static new consistency    However, it would end up removing the StructLayout attribute (and if its necessary, you would have to add it back).    Ignore if you do not want the changes that come from auto-generating the ref, intentionally.