LayoutKindCF 1.0, ECMA 1.0, serializable

System.Runtime.InteropServices (mscorlib.dll)enum

This enumeration is used to specify how objects are laid out when they are passed to unmanaged code. Auto specifies that .NET should choose the best method to lay out the objects. Explicit gives you complete control over how the object's data members are laid out. You must use FieldOffsetAttribute with each member if you specify Explicit. Sequential lays out the object's members one after the other, in the same order that they are defined in the class definition.

public enum LayoutKind {
   Sequential = 0,
   Explicit = 2,
   Auto = 3


System.Object System.ValueType System.Enum(System.IComparable, System.IFormattable, System.IConvertible) LayoutKind

Returned By


Passed To

StructLayoutAttribute.StructLayoutAttribute( )

    Part II: Programming with the .NET Framework
    Part IV: API Quick Reference
    Chapter 26. System