StructOffset
attributeThe StructOffset
attribute is used to specify the layout of fields for the struct.
[AttributeUsage(AttributeTargets.Field)] public class StructOffsetAttribute: System.Attribute { public StructOffsetAttribute(int offset) {…} }
The StructOffset
attribute may not be placed on a field declarations that is a member of a class.