System.Reflection.Emit.FieldBuilder.SetOffset Method

Specifies the field layout.

Syntax

public void SetOffset (int iOffset)

Parameters

iOffset
The offset of the field within the type containing this field.

Remarks

The following code sample illustrates the use of SetOffset.

code reference: FieldBuilder_SetOffset#1

Requirements

Namespace: System.Reflection.Emit
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0