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
FieldDefinitionThe field that was laid out.
offset
uintThe offset of the field.
contentsLayout
TypeMemoryLayoutThe layout of the contents of the field.
Properties
ContentsLayout
Gets the layout of the contents of the field.
public TypeMemoryLayout ContentsLayout { get; }
Property Value
Field
Gets the field that was aligned.
public FieldDefinition Field { get; }
Property Value
Offset
Gets the implied offset of the field, relative to the start of the enclosing structure.
public uint Offset { get; }