Table of Contents

Interface IMethodBodyReader

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

Provides members for reading a method body.

public interface IMethodBodyReader

Methods

ReadMethodBody(ModuleReaderContext, MethodDefinition, in MethodDefinitionRow)

Reads a method body

MethodBody? ReadMethodBody(ModuleReaderContext context, MethodDefinition owner, in MethodDefinitionRow row)

Parameters

context ModuleReaderContext

The reader context.

owner MethodDefinition

The owner of the method body.

row MethodDefinitionRow

The metadata row of the owner method.

Returns

MethodBody

The method, or null if none was provided.

Remarks

Implementations should never access MethodBody or CilMethodBody, as this might result in an infinite recursive loop.