Skip to content

IInformationalMethodBody Interface

A Mono.Cecil MethodBody wrapper which contains a list of IInformationalInstruction in place of a Mono.Cecil Instruction list for easier analysis.

C#
public interface IInformationalMethodBody

The original MethodBody.

C#
MethodBody Body { get; }

The list of IInformationalInstructions in the IInformationalMethodBody.

C#
ReadOnlyCollection<IInformationalInstruction> InformationalInstructions { get; }

Gets an IInformationalInstruction for the specified Instruction.

C#
IInformationalInstruction GetInformationalInstruction(Instruction instruction)

instruction Instruction
The Instruction whose IInformationalInstruction to get.

IInformationalInstruction
An IInformationalInstruction for the instruction.

Checks if InformationalInstructions contains error annotations.

C#
bool HasErrors()

bool
True if error annotations, otherwise false.

Returns a string presentation of this IInformationalMethodBody.

C#
string ToString()

string

Returns a string presentation of this IInformationalMethodBody, including error annotations.

C#
string ToStringWithAnnotations()

string

Returns a string presentation of this IInformationalMethodBody with only instructions with error annotations.

C#
string ToStringWithAnnotationsExclusive()

string