Table of Contents

Method TryGotoNext

Namespace
MonoMod.Cil
Assembly
MonoMod.Utils.dll

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

Search forward and moves the cursor to the next sequence of instructions matching the corresponding predicates.
public bool TryGotoNext(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.

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

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

Parameters

predicates Func<Instruction, bool>[]

Returns

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