FieldOffsetAttribute

FieldOffsetAttribute ECMA 1.0

System.Runtime.InteropServices (mscorlib.dll) sealed class

This attribute controls the offset, in bytes, of a field. Use it to match your .NET types to the layout of C and C++ structures exactly. This attribute can be used only within classes that have the StructLayoutAttribute attribute where LayoutKind.Explicit was used.

 public sealed class  FieldOffsetAttribute  : Attribute {  // Public Constructors  public  FieldOffsetAttribute  (int   offset   );  // Public Instance Properties  public int  Value  {get; } } 

Hierarchy

System.Object System.Attribute FieldOffsetAttribute

Valid On

Field



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