Table of Contents

Class SerializedMethodSemantics

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

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

public class SerializedMethodSemantics : MethodSemantics, IMetadataMember, IOwnedCollectionElement<IHasSemantics>
Inheritance
SerializedMethodSemantics
Implements
Inherited Members

Constructors

SerializedMethodSemantics(ModuleReaderContext, MetadataToken, in MethodSemanticsRow)

Creates a method semantics object from a method semantics row.

public SerializedMethodSemantics(ModuleReaderContext context, MetadataToken token, in MethodSemanticsRow row)

Parameters

context ModuleReaderContext

The reader context.

token MetadataToken

The token to initialize the semantics for.

row MethodSemanticsRow

The metadata table row to base the semantics on.

Methods

GetAssociation()

Obtains the member that the method is association to.

protected override IHasSemantics? GetAssociation()

Returns

IHasSemantics

The member

Remarks

This method is called upon initialization of the Association property.

GetMethod()

Obtains the method that was given special semantics.

protected override MethodDefinition? GetMethod()

Returns

MethodDefinition

The method

Remarks

This method is called upon initialization of the Method property.