IlDisassembler
Namespace: Dotsider.Core.Analysis
Assembly: Dotsider.Core.dll
Decodes IL (Intermediate Language) method bodies into human-readable instruction sequences.
public sealed class IlDisassemblerInheritance
Section titled “Inheritance”Object → IlDisassembler
Constructors
Section titled “Constructors”IlDisassembler(AssemblyAnalyzer)
Section titled “IlDisassembler(AssemblyAnalyzer)”Decodes IL (Intermediate Language) method bodies into human-readable instruction sequences.
Parameters:
analyzer(AssemblyAnalyzer):
public IlDisassembler(AssemblyAnalyzer analyzer)Methods
Section titled “Methods”Disassemble(MethodDefInfo)
Section titled “Disassemble(MethodDefInfo)”Disassembles a method’s IL body into a sequence of instructions. Returns an empty list if the method has no IL body.
Parameters:
method(MethodDefInfo): The method to disassemble.
Returns: IReadOnlyList<IlInstruction>
The list of decoded IL instructions.
public IReadOnlyList<IlInstruction> Disassemble(MethodDefInfo method)DisassembleWithText(MethodDefInfo)
Section titled “DisassembleWithText(MethodDefInfo)”Disassembles a method and returns the text, instruction list, and header line count.
Parameters:
method(MethodDefInfo): The method to disassemble.
Returns: Nullable<String, IlInstruction>, Int32>>
Tuple of (text, instructions, headerLineCount), or null if no IL body.
public (string Text, IReadOnlyList<IlInstruction> Instructions, int HeaderLineCount)? DisassembleWithText(MethodDefInfo method)FormatDisassembly(MethodDefInfo)
Section titled “FormatDisassembly(MethodDefInfo)”Formats a complete disassembly listing for a method, including header information.
Parameters:
method(MethodDefInfo): The method to disassemble.
Returns: String
A multi-line string with the full disassembly listing.
public string FormatDisassembly(MethodDefInfo method)GetHeaderLineCount(MethodDefInfo)
Section titled “GetHeaderLineCount(MethodDefInfo)”Returns the number of header lines for a method’s disassembly listing.
Parameters:
method(MethodDefInfo): The method to compute header lines for.
Returns: Int32
The number of header lines, or 0 if no IL body.
public int GetHeaderLineCount(MethodDefInfo method)