Table of Contents

Method FindMethod

Namespace
MonoMod.Utils
Assembly
MonoMod.Utils.dll

FindMethod(TypeDefinition, string, bool)

Find a method for a given ID.
public static MethodDefinition? FindMethod(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.

FindMethod(Type, string, bool)

Find a method for a given ID.
public static MethodInfo? FindMethod(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.