namespace Annotations_Basics { // using HarmonyLib; [HarmonyPatch(typeof(SomeTypeHere))] [HarmonyPatch("SomeMethodName")] // if possible use nameof() here class MyPatches { static void Postfix(/*...*/) { //... } } // class SomeTypeHere { } }