using System;using System.Reflection;Type type = typeof(Formatter);MethodInfo format = type.GetMethod("Format")!;Console.WriteLine(format.Invoke(new Formatter(), [12m]));public sealed class Formatter{ public string Format(decimal value) => $"{value:F2}"; public string Format(decimal value, string unit) => $"{value:F2} {unit}";}