Generic Data type
What is the use of Generic data type?
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted Nov 21, 2011, 8:49 PM EST
Please refer Our recommended articles
Thanks
Priya LingeRank #785 · 2.9K reputationPosted Nov 21, 2011, 9:03 PM EST
Please check below link.
http://msdn.microsoft.com/en-us/library/windows/desktop/dd374107(v=vs.85).aspx
Thanks.
Kunal Naik163 reputationPosted Nov 21, 2011, 9:18 PM EST
Please refer following links,
Link1
Link2
Link3
Datta KharadRank #2,135 · 668 reputationPosted Nov 22, 2011, 12:34 AM EST
Advantages of Generic Data Type:-
Use generic types to maximize code reuse, type safety, and performance.
The most common use of generics is to create collection classes.
The .NET Framework class library contains several new generic collection classes in the System.Collections.Generic namespace. These should be used whenever possible instead of classes such as ArrayList in the System.Collections namespace.
You can create your own generic interfaces, classes, methods, events and delegates.
Generic classes may be constrained to enable access to methods on particular data types.
Information on the types that are used in a generic data type may be obtained at run-time by using reflection.