#1,144 – Getting Type Information about a Generic Type

You can use the typeof operator to get information about a particular type. The operator returns an instance of the Type class, which you can then query to get info about the type.

You can get type information about generic types in two different ways. You can use the name of the type with empty angle brackets to get information about the generic type. Or you can supply type arguments to get information about a particular constructed type.