public static void Main()
var listInputType = new []{
foreach(var myType in listInputType){
typeof(Program).GetMethod("M1").MakeGenericMethod(myType).Invoke(null, null);
typeof(Program).GetMethod("M2").MakeGenericMethod(myType).Invoke(null, null);
public static void M1<t>()
Console.WriteLine($"M1<{typeof(t).Name}>()");
public static void M2<t>()
Console.WriteLine($"M2<{typeof(t).Name}>()");
public static class StaticExample{