Table of Contents

Class CilDisassembler

Namespace
AsmResolver.PE.DotNet.Cil
Assembly
AsmResolver.PE.dll

Provides a mechanism for decoding CIL instructions from an input stream.

public class CilDisassembler
Inheritance
CilDisassembler
Inherited Members

Constructors

CilDisassembler(in BinaryStreamReader)

Creates a new CIL disassembler using the provided input stream.

public CilDisassembler(in BinaryStreamReader reader)

Parameters

reader BinaryStreamReader

The input stream to read the code from.

CilDisassembler(in BinaryStreamReader, ICilOperandResolver)

Creates a new CIL disassembler using the provided input stream.

public CilDisassembler(in BinaryStreamReader reader, ICilOperandResolver operandResolver)

Parameters

reader BinaryStreamReader

The input stream to read the code from.

operandResolver ICilOperandResolver

The object responsible for resolving operands.

Properties

ResolveBranchTargets

Gets or sets a value indicating whether branch targets should be resolved to CilInstructionLabel where possible.

public bool ResolveBranchTargets { get; set; }

Property Value

bool

Methods

ReadInstructions()

Reads all instructions from the input stream.

public IList<CilInstruction> ReadInstructions()

Returns

IList<CilInstruction>

The instructions.