Name
StructLayoutAttribute
Synopsis
Use this attribute to control
how the members
of a class are laid out in memory. See LayoutKind
for the possible values you can use with this attribute.
public sealed class StructLayoutAttribute : Attribute { // Public Constructors public StructLayoutAttribute(shortlayoutKind
); public StructLayoutAttribute(LayoutKindlayoutKind
); // Public Instance Fields public CharSet CharSet; public int Pack; public int Size; // Public Instance Properties public LayoutKind Value{get; } }
Hierarchy
System.Object
→
System.Attribute
→
StructLayoutAttribute
Valid On
Class, Struct
Get C# in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.