What are generics in C#?

Technology CommunityCategory: C#What are generics in C#?
VietMX Staff asked 3 years ago

Generics allow you to delay the specification of the data type of programming elements in a class or a method, until it is actually used in the program. In other words, generics allow you to write a class or method that can work with any data type.