Mike
Mike

Reputation: 5529

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

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

Upvotes: 10

Views: 1131

Answers (1)

user541686
user541686

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

Related Questions