Interviews7 answers
Collections and Generics in .net?
7 Answers
http://www.dotnet-tricks.com/Tutorial/csharp/U08E301212-Difference-between-Generics-and-Collections-with-example.html
Posted Apr 15, 2015, 7:18 PM EDT
http://www.c-sharpcorner.com/UploadFile/deveshomar/basic-of-generic-class-in-C-Sharp/
Nitin ChoudharyPosted Jan 20, 2015, 2:33 AM EST
In simple terms -
Collections can hold elements of any data types e.g. ArrayList
Generics can hold elements of a specific data types e.g. List, where T stands for the data type.
You might need to type cast while accessing the elements in the ArrayList while it is not the case for Collections.
Bhushan GawalePosted Jan 18, 2015, 8:11 PM EST
collections support for stacks, queues, lists, array list and hash tables.
Generics allow you can work with any data type. You can create your own generic interfaces, classes, methods, events and delegates.
Sneha PandaPosted Dec 15, 2014, 8:36 AM EST
Generics:
http://www.c-sharpcorner.com/UploadFile/deveshomar/basic-of-generic-class-in-C-Sharp/
Devesh OmarPosted Jun 4, 2014, 9:34 PM EDT
generics allows you to work with any data type
Collections are collection of arraylist
Mahesh Kumar AlankaPosted Apr 25, 2014, 9:38 PM EDT
For collection.. http://www.tutorialspoint.com/csharp/csharp_collections.html
and
for generics http://www.tutorialspoint.com/csharp/csharp_generics.htm
Munesh SharmaPosted Apr 4, 2014, 1:51 AM EDT





