Generics
hi what are generics,how they are used can anyone give a brief description about this plzzzzz urgent
thank you
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Kirtan PatelPosted Dec 9, 2009, 1:32 AM
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");
srinivasPosted Dec 9, 2009, 1:45 AM
Lalit MPosted Dec 9, 2009, 12:28 AM
http://aspalliance.com/1100_Using_Generics_in_C.all
http://www.15seconds.com/issue/031024.htm
Amit ChoudharyPosted Dec 9, 2009, 12:26 AM
The following article is on the c-sharpcorner... check it out..