Table of Contents

Class SerializedClassLayout

Namespace
AsmResolver.DotNet.Serialized
Assembly
AsmResolver.DotNet.dll

Represents a lazily initialized implementation of ClassLayout that is read from a .NET metadata image.

public class SerializedClassLayout : ClassLayout, IMetadataMember
Inheritance
SerializedClassLayout
Implements
Inherited Members

Constructors

SerializedClassLayout(ModuleReaderContext, MetadataToken, in ClassLayoutRow)

Creates a class layout from a class layout metadata row.

public SerializedClassLayout(ModuleReaderContext context, MetadataToken token, in ClassLayoutRow row)

Parameters

context ModuleReaderContext

The reader context.

token MetadataToken

The token to initialize the class layout for.

row ClassLayoutRow

The metadata table row to base the class layout on.

Methods

GetParent()

Obtains the type this layout is assigned to.

protected override TypeDefinition? GetParent()

Returns

TypeDefinition

The parent type.

Remarks

This method is called upon initialization of the Parent property.