What does the '1 mean when I GetType().Name on a generic type?

c#, generics

Solution

It means that the type takes in 1 generic type argument.

If you're wondering why it's necessary, it's to distinguish different types based on name alone, rather than based on other attributes (like how many type arguments it takes).

Problem

What does the '1 mean when I GetType().Name on a generic type? Just curious... Thanks!

Original source