Reference for Generic Types
using System; public class Starter { public static void Main() { MyClass<int> obj = new MyClass<int>(); obj.MethodA(); } } class MyClass<T> { public T MethodA() { T var = default(T); Console.WriteLine(this.GetType().ToString()); return var; } }