Table of Contents

Method GotoPrev

Namespace
MonoMod.Cil
Assembly
MonoMod.Utils.dll

GotoPrev(MoveType, params Func<Instruction, bool>[])

Search backward and moves the cursor to the next sequence of instructions matching the corresponding predicates. See also TryGotoPrev(MoveType, params Func<Instruction, bool>[])
public ILCursor GotoPrev(MoveType moveType = MoveType.Before, params Func<Instruction, bool>[] predicates)

Parameters

moveType MoveType
predicates Func<Instruction, bool>[]

Returns

ILCursor
this

Exceptions

KeyNotFoundException
Thrown if no match is found

GotoPrev(params Func<Instruction, bool>[])

Search backward and moves the cursor to the next sequence of instructions matching the corresponding predicates. See also TryGotoPrev(MoveType, params Func<Instruction, bool>[])
public ILCursor GotoPrev(params Func<Instruction, bool>[] predicates)

Parameters

predicates Func<Instruction, bool>[]

Returns

ILCursor
this

Exceptions

KeyNotFoundException
Thrown if no match is found