Collections and Generics

State what are Collections and Generics?

E

Expert

Verified

A Collection is defined as set of linked items which can be referred to as single unit. The System.Collections namespace offers you with several classes and interfaces. Some of them are - ArrayList, Stack, List, IEnumerable, ICollection and IDictionary. Generics offer type-safety to your class at compile time. While creating a data structure, you need not to specify the data type at the declaration time. The System.Collections.Generic namespace consisits of all the generic collections.

   Related Questions in DOT NET Programming

©TutorsGlobe All rights reserved 2022-2023.