using System.Collections;
public static void Main()
var harmony = new Harmony("test");
harmony.PatchAll(Assembly.GetExecutingAssembly());
[HarmonyPatch(typeof(Test), "Method")]
static IEnumerator Postfix(IEnumerator input)
yield return input.Current;
public static IEnumerator Method()
Console.WriteLine("Point A");
Console.WriteLine("Point B");
Console.WriteLine("Point C");
Console.WriteLine(e.Current);