You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 16, 2022. It is now read-only.
publicclassBufferView{[ZeroFormatter.IgnoreFormat]publicintWidth{get=>TriangleCount;set=>TriangleCount=value;}[ZeroFormatter.IgnoreFormat]publicintHeight{get=>VertexCount;set=>VertexCount=value;}[ZeroFormatter.Index(0)]publicvirtualbytePadding{get;set;}// IgnoreFormat for some reason removes the first index[ZeroFormatter.Index(1)]publicvirtuallongStart{get;set;}[ZeroFormatter.Index(2)]publicvirtuallongByteLength{get;set;}[ZeroFormatter.Index(3)]publicvirtualintTriangleCount{get;set;}[ZeroFormatter.Index(4)]publicvirtualintVertexCount{get;set;}}
This will result in Padding not being serialized - when searching for this property in the ZFC-generated file, it's no there. If the properties with IgnoreFormatAttribute are moved to the end, even the whole next ZeroFormattable class is removed.
Imagine this code:
This will result in Padding not being serialized - when searching for this property in the ZFC-generated file, it's no there. If the properties with IgnoreFormatAttribute are moved to the end, even the whole next ZeroFormattable class is removed.