Table of Contents

Method GotoNext

Namespace
MonoMod.Cil
Assembly
MonoMod.Utils.dll

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

Search forward and moves the cursor to the next sequence of instructions matching the corresponding predicates. See also TryGotoNext(MoveType, params Func<Instruction, bool>[])
public ILCursor GotoNext(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

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

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

Parameters

predicates Func<Instruction, bool>[]

Returns

ILCursor
this

Exceptions

KeyNotFoundException
Thrown if no match is found