Mono Class Library: System.Runtime.InteropServices.FieldOffsetAttribute Overview | Members

System.Runtime.InteropServices.FieldOffsetAttribute Constructor

Constructs and initializes a new instance of the System.Runtime.InteropServices.FieldOffsetAttribute class with the specified field offset in the class or structure.

public FieldOffsetAttribute (int offset)

Parameters

offset
A int that specifies the offset in bytes from the beginning of the structure to the beginning of the field.

Remarks

If offset is negative, its value is interpreted as an unsigned long value, and the system behavior is implementation-defined.

The FieldOffsetAttribute.Value property of the new instance is initialized to offset .

Requirements

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0