C# Language Reflecting on type parameters


Example

The typeof operator works on type parameters.

class NameGetter<T>
{
    public string GetTypeName()
    {
        return typeof(T).Name;
    }
}