The typeof operator works on type parameters.
typeof
class NameGetter<T> { public string GetTypeName() { return typeof(T).Name; } }