Reputation: 5529
What does the '1 mean when I GetType().Name on a generic type? Just curious... Thanks!
Upvotes: 10
Views: 1131
Reputation: 210785
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).
Upvotes: 13