Skip to main content

Posts

Showing posts with the label collection in asp.net c#

collection in asp.net c#

Collection represents a set of classes or objects that you can access to different type for different purpose.  The name space of collection classes are 1. System. Collections 2. System.Collections.Generic The System.Collection class contain the many classes for different purpose which explains in below. ArrayList Dictionary  HashTable  Stack Queue ArrayList Array List is collection with different data type using the System.Collection namespace. It is dynamic array and provides the feature for dynamic access. Example for Add() method using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; namespace CollectionClasses {                   public class Program                {      ...