You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<divclass="markdown level0 summary"><p>By adding the following using statement to your source code:</p>
76
+
<divclass="markdown level0 summary"><p>By adding the following using statement to your source code: <code>using static HarmonyLib.Code;</code>
77
+
you can for example start using <code>Ldarg_1</code> in you code instead of <code>new CodeMatch(OpCodes.Ldarg_1)</code>
78
+
and then you can use array notation to add an operand and/or a name: <code>Call[myMethodInfo]</code> instead of <code>new CodeMatch(OpCodes.Call, myMethodInfo)</code></p>
<section><p>By adding the following using statement to your source code:</p>
87
+
<section><p>By adding the following using statement to your source code: <code>using static HarmonyLib.Code;</code>
88
+
you can for example start using <code>Ldarg_1</code> in you code instead of <code>new CodeMatch(OpCodes.Ldarg_1)</code>
89
+
and then you can use array notation to add an operand and/or a name: <code>Call[myMethodInfo]</code> instead of <code>new CodeMatch(OpCodes.Call, myMethodInfo)</code></p>
0 commit comments