Table of Contents

Method FindMethodDeep

Namespace
MonoMod.Utils
Assembly
MonoMod.Utils.dll

FindMethodDeep(TypeDefinition, string, bool)

Find a method for a given ID recursively (including the passed type's base types).
public static MethodDefinition? FindMethodDeep(this TypeDefinition type, string id, bool simple = true)

Parameters

type TypeDefinition
The type to search in.
id string
The method ID.
simple bool
Whether to perform a simple search pass as well or not.

Returns

MethodDefinition
The first matching method or null.

FindMethodDeep(Type, string, bool)

Find a method for a given ID recursively (including the passed type's base types).
public static MethodInfo? FindMethodDeep(this Type type, string id, bool simple = true)

Parameters

type Type
The type to search in.
id string
The method ID.
simple bool
Whether to perform a simple search pass as well or not.

Returns

MethodInfo
The first matching method or null.