Back to Harmony

Class MethodBaseExtensions

docs/api/HarmonyLib.MethodBaseExtensions.html

2.4.2.0775 B
Original Source

Class MethodBaseExtensions

General extensions for collections

Inheritance

System.Object

MethodBaseExtensions

Namespace : HarmonyLib
Assembly : 0Harmony.dll
Syntax
public static class MethodBaseExtensions

Methods

HasMethodBody(MethodBase)

Tests a class member if it has an IL method body (external methods for example don't have a body)

Declaration
public static bool HasMethodBody(this MethodBase member)
Parameters
TypeNameDescription
System.Reflection.MethodBasemember

The member to test

|

Returns
TypeDescription
System.Boolean

Returns true if the member has an IL body or false if not

|