Home > DeveloperSection > Interviews > What are collections and generics?

Posted on    August-27-2014 11:35 PM

 C# C# 
 1 Answer(s)
  811  View(s)
Rate this:

Sumit Kesarwani

Total Post:782

Posted on    August-27-2014 12:00 AM

A collection can be defined as a group of related items that can be referred to as a single unit. The System.Collections namespace provides you with many classes and interfaces. Some of them are - ArrayList, List, Stack, ICollection, IEnumerable, and IDictionary. Generics provide the type-safety to your class at the compile time. While creating a data structure, you never need to specify the data type at the time of declaration. The System.Collections.Generic namespace contains all the generic collections.

Don't want to miss updates? Please click the below button!

Follow MindStick