Harmony.VersionInfo(out var version);
Console.WriteLine(version);
Console.WriteLine(Environment.Version);
var harmony = new Harmony("test");
var info = typeof(Foo).GetMethod(nameof(Foo.Test)) ?? throw new Exception("Could not find method info");
var prefixInfo = typeof(Example).GetMethod(nameof(Example.Prefix)) ?? throw new Exception("Could not find Prefix method info");
harmony.Patch(info, new HarmonyMethod(prefixInfo));
var s = ((Bar)new Foo()).Test();
public static void Prefix()
Console.WriteLine("Prefix");