Table of Contents

Interface IMethodBodySerializer

Namespace
AsmResolver.DotNet.Code
Assembly
AsmResolver.DotNet.dll

Provides members for serializing a method body defined in a .NET module to a file segment.

public interface IMethodBodySerializer

Methods

SerializeMethodBody(MethodBodySerializationContext, MethodDefinition)

Serializes the body of the provided method definition into a segment that can be added to a PE image.

ISegmentReference SerializeMethodBody(MethodBodySerializationContext context, MethodDefinition method)

Parameters

context MethodBodySerializationContext

The context in which the serializer is situated in.

method MethodDefinition

The method to serialize the method body for.

Returns

ISegmentReference

A reference to a segment that encodes the method body.