Table of Contents

Method IndexOf

Namespace
MonoMod.Cil
Assembly
MonoMod.Utils.dll

IndexOf(Instruction?)

Determine the index of a given instruction.
public int IndexOf(Instruction? instr)

Parameters

instr Instruction
The instruction to get the index of.

Returns

int
The instruction index, or the end of the method body if it hasn't been found.