Table of Contents

Method TryFindPrev

Namespace
MonoMod.Cil
Assembly
MonoMod.Utils.dll

TryFindPrev(out ILCursor[], params Func<Instruction, bool>[])

Search backwards for occurences of a series of instructions matching the given set of predicates with gaps permitted.
public bool TryFindPrev(out ILCursor[] cursors, params Func<Instruction, bool>[] predicates)

Parameters

cursors ILCursor[]
An array of cursors corresponding to each found instruction (MoveType.Before)
predicates Func<Instruction, bool>[]

Returns

bool
True if a match was found