Hi,
I've heard about generics in C#(Whidbey) which is much like templates in
C++. As per my understanding, since C++ doesn't have universal base class
concept so templates are important. Why templates are important in C# when
everything in C# ultimately derives from class "object".
For example, I can build a collection class for type "object" and it will
work for all the primitive as well as non primitive types since all types are
derived from class "object". Even one can build strongly typed collections
using "object" paradigm.
Question: If it can be done this way, then why generics ?? What benefits
Generics offers ??
Regards,
Hatim Ali.