Table of Contents

Method TryGotoPrev

Namespace
MonoMod.Cil
Assembly
MonoMod.Utils.dll

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

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

Parameters

moveType MoveType
predicates Func<Instruction, bool>[]

Returns

bool
true if a matching instruction was found; false if one was not.

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

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

Parameters

predicates Func<Instruction, bool>[]

Returns

bool
true if a matching instruction was found; false if one was not.