difference between generic and collection with example

Posted by Sikandar786 under C# on 4/18/2012 | Points: 10 | Views : 33357 | Status : [Member] | Replies : 1
please any one help me

what is difference between generic and collection with example

sikandar


Responses

Posted by: Sridevi on: 4/18/2012 [Member] Starter | Points: 25

Up
0
Down
COLLECTION

Collections can hold different data type. Here all the elements are objects.

GENERICS

In generics, we can specify which datatype we want to store.


Use the following links for examples


For generics,
http://msdn.microsoft.com/en-us/library/512aeb7t(v=vs.90).aspx

For collections,
http://zetcode.com/language/csharptutorial/collections/

Regards,
Sridevi.





Sridevi

Sikandar786, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response