Pre-defined generic classes in C#

C# comes with a whole bunch of pre-defined generic classes which you can use as per your project needs. You will find all important pre-defined generic classes under the namespace System.Collections.Generics . The most important and common generic classes which you will need in your projects are

  1. List
  2. Dictionary
  3. Stack

List<T> is a generic class used to creating a collection of object.
Dictionary<Key,Value> is a generic class used to create an indexed collection of objects. Each of the object has a unique key. In a dictionary you cannot assign a duplicate key to a records but a duplicate value can be inserted.
Stack<T> is a generic class to create a stack of any type of objects you want.

Quick Links

E-Magazines

@

Total Followers
Study Group Created
Study Group Joined
Following Teacher
Following Organization
Blog Articles Added
Questions Asked
Questions Answered
Jobs Posted
Total Members in Group
Questions asked by members
Tasks added in this Group

Please wait..

Ok

Login to Open ESchool OR Create your account    Login   SignUp