System.Type type = typeof(MyClass);
type.MyStaticFunk();
public class Foo
{
public static string Bar() => "Bar() is called";
}
var type = typeof(Foo);
var mi = type.GetMethod("Bar", BindingFlags.Static | BindingFlags.Public);
var r = mi.Invoke(null, []);
Console.WriteLine($"Result: {r}");
>> Result: Bar() is called