PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Field­Def­Declaration Class / Field­Def­Declaration Properties / Field­Def­Declaration.​Offset Property

FieldDefDeclaration.Offset Property

Gets or sets the offset of the current field in the type layout.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public int Offset { get; set; }

Property Value

Type: Int32
The offset of the current field in the type layout, or AutoOffset if the field offset is computed by the runtime.
See Also