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
BinaryStreamReaderThe 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
BinaryStreamReaderThe input stream to read the code from.
operandResolver
ICilOperandResolverThe 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
Methods
ReadInstructions()
Reads all instructions from the input stream.
public IList<CilInstruction> ReadInstructions()
Returns
- IList<CilInstruction>
The instructions.