using System; public class Starter { public static void Main() { MyClass.MethodA<int>(20); } } public class MyClass { public static void MethodA<T>(T param) { Console.WriteLine(param.GetType().ToString()); } }