3 ms·
So, I think I've clearly shown where Generics are useful - you can use them to avoid having to create new classes that share very similar functionality, except
by AndrewDucker 14y ago
So, I think I've clearly shown where Generics are useful - you can use them to avoid having to create new classes that share very similar functionality, except for the type they operate upon.
You can do the same things without them - but you have to write separate code for each type you deal with.
- grey-area 14y agoThanks for taking the time to explain more fully what you would use them for - not entirely convinced I'd find much use for them because of the built-in containers which operate on any type, but will read up on C# generics to find out more.