Back to Harmony

Class InnerMethod

docs/api/HarmonyLib.InnerMethod.html

2.4.2.01.2 KB
Original Source

Class InnerMethod

Occcurances of a method that is called inside some outer method

Inheritance

System.Object

InnerMethod

Namespace : HarmonyLib
Assembly : 0Harmony.dll
Syntax
public class InnerMethod

Constructors

InnerMethod(MethodInfo, Int32[])

Creates an InnerMethod

Declaration
public InnerMethod(MethodInfo method, params int[] positions)
Parameters
TypeNameDescription
System.Reflection.MethodInfomethod

The inner method

| | System.Int32[] | positions |

Which occcurances (1-based) of the method, negative numbers are counting from the end, empty array means all occurances

|

Fields

positions

Which occcurances (1-based) of the method, negative numbers are counting from the end, empty array means all occurances

Declaration
public int[] positions
Field Value
TypeDescription
System.Int32[]

Properties

Method

The inner method

Declaration
public MethodInfo Method { get; set; }
Property Value
TypeDescription
System.Reflection.MethodInfo