Show / Hide Table of Contents

Class Code

By adding the following using statement to your source code: using static HarmonyLib.Code; you can for example start using Ldarg_1 in you code instead of new CodeMatch(OpCodes.Ldarg_1) and then you can use array notation to add an operand and/or a name: Call[myMethodInfo] instead of new CodeMatch(OpCodes.Call, myMethodInfo)

Inheritance
System.Object
Code
Namespace: HarmonyLib
Assembly: 0Harmony.dll
Syntax
public static class Code

Properties

| Improve this Doc View Source

Item[Object, String]

Declaration
public Code.Nop_ this[object operand = null, string name = null ] { get; }
Parameters
Type Name Description
System.Object operand
System.String name
Property Value
Type Description
HarmonyLib.Code.Nop_
| Improve this Doc View Source

Nop

Declaration
public static Code.Nop_ Nop { get; }
Property Value
Type Description
HarmonyLib.Code.Nop_
| Improve this Doc View Source

Operand

Declaration
public static Code.Operand_ Operand { get; }
Property Value
Type Description
HarmonyLib.Code.Operand_
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX