typeof(T) n = new typeof(T)(); c# code example Example: c# typeof string s = "Geeks"; Console.WriteLine(s.GetType());