Class HarmonyMethodExtensions
- Namespace
- HarmonyLib
- Assembly
- 0Harmony.dll
Annotation extensions
public static class HarmonyMethodExtensions
- Inheritance
-
objectHarmonyMethodExtensions
Methods
Clone(HarmonyMethod)
Clones an annotation
public static HarmonyMethod Clone(this HarmonyMethod original)
Parameters
originalHarmonyMethodThe HarmonyMethod to clone
Returns
- HarmonyMethod
A copied HarmonyMethod
CopyTo(HarmonyMethod, HarmonyMethod)
Copies annotation information
public static void CopyTo(this HarmonyMethod from, HarmonyMethod to)
Parameters
fromHarmonyMethodThe source HarmonyMethod
toHarmonyMethodThe destination HarmonyMethod
GetFromMethod(MethodBase)
Gets all annotations on a method
public static List<HarmonyMethod> GetFromMethod(MethodBase method)
Parameters
methodMethodBaseThe method/constructor
Returns
- List<HarmonyMethod>
A list of HarmonyMethod
GetFromType(Type)
Gets all annotations on a class/type
public static List<HarmonyMethod> GetFromType(Type type)
Parameters
typeTypeThe class/type
Returns
- List<HarmonyMethod>
A list of all HarmonyMethod
GetMergedFromMethod(MethodBase)
Gets merged annotations on a method
public static HarmonyMethod GetMergedFromMethod(MethodBase method)
Parameters
methodMethodBaseThe method/constructor
Returns
- HarmonyMethod
The merged HarmonyMethod
GetMergedFromType(Type)
Gets merged annotations on a class/type
public static HarmonyMethod GetMergedFromType(Type type)
Parameters
typeTypeThe class/type
Returns
- HarmonyMethod
The merged HarmonyMethod
Merge(HarmonyMethod, HarmonyMethod)
Merges annotations
public static HarmonyMethod Merge(this HarmonyMethod master, HarmonyMethod detail)
Parameters
masterHarmonyMethodThe master HarmonyMethod
detailHarmonyMethodThe detail HarmonyMethod
Returns
- HarmonyMethod
A new, merged HarmonyMethod