August 2003
Intermediate to advanced
928 pages
32h 1m
English
FieldOffsetAttribute
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; }
}
System.Object
→
System.Attribute
→
FieldOffsetAttribute
Field