Table of Contents

Class FieldMemoryLayout

Namespace
AsmResolver.DotNet.Memory
Assembly
AsmResolver.DotNet.dll

Provides information about the layout of a single field in a type.

public class FieldMemoryLayout
Inheritance
FieldMemoryLayout
Inherited Members

Constructors

FieldMemoryLayout(FieldDefinition, uint, TypeMemoryLayout)

Creates a new instance of the FieldMemoryLayout class.

public FieldMemoryLayout(FieldDefinition field, uint offset, TypeMemoryLayout contentsLayout)

Parameters

field FieldDefinition

The field that was laid out.

offset uint

The offset of the field.

contentsLayout TypeMemoryLayout

The layout of the contents of the field.

Properties

ContentsLayout

Gets the layout of the contents of the field.

public TypeMemoryLayout ContentsLayout { get; }

Property Value

TypeMemoryLayout

Field

Gets the field that was aligned.

public FieldDefinition Field { get; }

Property Value

FieldDefinition

Offset

Gets the implied offset of the field, relative to the start of the enclosing structure.

public uint Offset { get; }

Property Value

uint