Method FindMethod
FindMethod(TypeDefinition, string, bool)
Find a method for a given ID.
public static MethodDefinition? FindMethod(this TypeDefinition type, string id, bool simple = true)
Parameters
typeTypeDefinition- The type to search in.
idstring- The method ID.
simplebool- 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
typeType- The type to search in.
idstring- The method ID.
simplebool- Whether to perform a simple search pass as well or not.
Returns
- MethodInfo
- The first matching method or null.