MethodBodyExtensions Class
Definition
Section titled “Definition”Extension methods for MethodBody.
public static class MethodBodyExtensionsInheritance object
Methods
Section titled “Methods”CreateInformationalSnapshotJIT(MethodBody)
Section titled “CreateInformationalSnapshotJIT(MethodBody)”Creates an IInformationalMethodBody snapshot of the provided MethodBody. This will evaluate instructions as accurately as possible to the JIT compiler, which means that unreachable instructions aren’t evaluated.
public static IInformationalMethodBody CreateInformationalSnapshotJIT(this MethodBody body)Parameters
Section titled “Parameters”body MethodBody
The MethodBody to create an informational snapshot for.
Returns
Section titled “Returns”IInformationalMethodBody
An IInformationalMethodBody.
CreateInformationalSnapshotEvaluateAll(MethodBody)
Section titled “CreateInformationalSnapshotEvaluateAll(MethodBody)”Creates an IInformationalMethodBody snapshot of the provided MethodBody. This evaluates unreachable instructions which means this is not accurate for proper CIL analysis, but this can be useful when we want to estimate stack sizes of unreachable instructions.
public static IInformationalMethodBody CreateInformationalSnapshotEvaluateAll(this MethodBody body)Parameters
Section titled “Parameters”body MethodBody
The MethodBody to create an informational snapshot for.