Basics of Dot Net Collections

Introduction:

Dot Net Collections:  I believe, the readers of this article are well versed or educated of Dot Net  basics and also have hands-on experience. There are series of Dot Net  that have already been discussed which includes Dot net Basics,OOP’s Concept,Dot Net Components. If you are new here I would like to recommend the previous series of Dot Net Tutorials for detailed understanding,

This article helps you to know about Collections in Dot Net. It provides  powerful support for Collections.

   Now Let’s Begin  ,            

Definition of Dot Net Collections:

Collections is a set of related objects. The Dot Net  Framework offers a many  collections like Array List, Hash Table , Sorted List, Stack and Queue etc. Collections can vary, depending on how the elements are stored, how they are sorted, how searches are performed, and how comparisons are made .All these collections are exists in System.Collections namespace.

ArrayList:

Array List  represents an ordered collections of an object that can be indexed individually. It  allows dynamic memory allocation, adding, searching and sorting items in the list. It is an alternative to an array.

HashTable:

     The Hash table provides a  better  way of storage and retrieval of items of the object type.  The Hashtable class provides support for key based searching.

SortedList:

   Sorted List   represents a collections of key/value pairs that are sorted by the keys and are accessible by key and by index. Sorted List a combination of Array List and Hash Table. The collections of items is always sorted by the key value.

Stack:

Stack  represents a last in first out collections of objects.Stack  supports push and pop methods for adding and removing objects from the collection.

Queue:

Queue represents a first in first out  collections of objects. Queue supports Enqueue and Dequeue methods for adding and removing objects from the collections.

Conclusion:

I hope this article helps you to gain knowledge in Dot Net Collections. If you are interested to know about the whole content of Microsoft Dot Net Please Visit here. Its gives you  a platform to learn Microsoft Dot Net language.