Generics
hi what are generics,how they are used can anyone give a brief description about this plzzzzz urgent
thank you
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
Kirtan PatelRank #292 · 8.6K reputationPosted Dec 8, 2009, 8:32 PM EST
Generics Are Type which can build Collections like List
by generic you can build Lists of Any Data Type means if you want to build List of Integers ,Strings , Floats etc you can
build it easily and Also You can Use it like you use list Box suppose you want to Make List of Strings .
// code for that will be
List
//Adding item to generic list
mystringlist.Add("StringItem");
Amit ChoudharyRank #145 · 15.8K reputationPosted Dec 8, 2009, 7:26 PM EST
The following article is on the c-sharpcorner... check it out..
Lalit MRank #1,186 · 1.5K reputationPosted Dec 8, 2009, 7:28 PM EST
http://aspalliance.com/1100_Using_Generics_in_C.all
http://www.15seconds.com/issue/031024.htm
srinivas137 reputationPosted Dec 8, 2009, 8:45 PM EST