System.Collections


System.Collections.ArrayListThis can work with any type of data (objects, strutcs or primitive types) Doesn't have a (key,value) relationship
System.Collections.BitArray 
System.Collections.Hashtable 
System.Collections.QueueFirst in, first out collection
System.Collections.SortedList 
System.Collections.StackLast in, first out collection


System.Collections.ArrayList

Added in .NET 1.1
more details


System.Collections.BitArray

Added in .NET 1.1

System.Collections.BitArray 


System.Collections.Queue

Added in .NET 1.1

System.Collections.Queue 

The generic version of this collection is System.Collections.Generic.Queue


System.Collections.SortedList

Added in .NET 1.1

System.Collections.SortedList 

Methods

AddAppends an element after the last element in the collection and returns the index where it was inserted.
ClearRemoves all elements from the collection.
Clone 
ContainsReturns TRUE if an element exists in the collection.
ContainsKey 
ContainsValue 
CopyToCopies the elements from the collection to a new one-dimensional array, starting at the specified index in the array.
GetByIndexGets the value at a specified index
GetEnumeratorReturns an enumerator to iterate an ArrayList
GetKey 
GetKeyList 
GetValueList 
IndexOfKey 
IndexOfValue 
RemoveRemoves an element from the collection
RemoveAtRemoves an element at the specified index from the collection
SetByIndex 
SynchronizedAlphabetically sorts the elements
TrimToSize 

Properties

CapacityProperty contains the number of elements the srray can currently hold.
CountReturns the number of elements in the collection.
IsFixedSizeReturns TRUE if no more elements can be added to the collection.
IsReadOnlyReturns TRUE is the elements cannot be altered.
IsSynchronized 
Item 
Keys 
SyncRoot 
Values 

The generic version of this collection is System.Collections.Generic.SortedList


System.Collections.Stack

Added in .NET 1.1

System.Collections.Stack 

The generic version of this collection is System.Collections.Generic.Stack


System.Collections.ICollection

Added in .NET 1.1
This interface extended the IEnumerable interface.
This is the medium functionality and gives you foreach and a count
The ICollection interface is the base interface for classes in the System.Collections namespace.



© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited TopPrevNext