LayoutKind

LayoutKind CF 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  } 

Hierarchy

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

Returned By

StructLayoutAttribute.Value

Passed To

StructLayoutAttribute.StructLayoutAttribute( )



C# in a Nutshell
C # in a Nutshell, Second Edition
ISBN: 0596005261
EAN: 2147483647
Year: 2005
Pages: 963

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net