Skip to content

Tag Archives: CSharp-Collections-Namespace

BitArray class manages a array of bit values, which are represented as Booleans, where true indicates bit is 1 and false indicates bit is 0.… Read More
BitArray class manages a array of bit values, which are represented as Booleans, where true indicates bit is 1 and false indicates bit is 0.… Read More
In C#, SortedList is a collection of key/value pairs which are sorted according to keys. By default, this collection sort the key/value pairs in ascending… Read More
An object and collection initializer is an interesting and very useful feature of C# language. This feature provides a different way to initialize an object… Read More
A Hashtable is a collection of key/value pairs that are arranged based on the hash code of the key. Or in other words, a Hashtable… Read More
A Stack is used to represent a last-in, first-out collection of objects. It is used when you need last-in, first-out access to items. It is… Read More
A Queue is used to represent a first-in, first out(FIFO) collection of objects. It is used when you need first-in, first-out access of items. It… Read More
Equals(Object) Method which is inherited from the Object class is used to check whether the specified ArrayList object is equal to another ArrayList object or… Read More
Queue.SyncRoot Property is used to get an object which can be used to synchronize access to the Queue. Queue represents a first-in, first out collection… Read More
Stack.SyncRoot Property is used to get an object which can be used to synchronize access to the Stack. Stack represents last-in, first out collection of… Read More
Stack() constructor is used to initialize a new instance of the Stack class which will be empty and will have the default initial capacity. Stack… Read More
ArrayList(Int32) constructor is used to initialize a new instance of the ArrayList class which will be empty and will have the specified initial capacity. ArrayList… Read More
ToString method is inherited from the Object class which is used to get a string that represents the current object. It can also apply on… Read More
BitArray.Clone Method is used to create a shallow copy of the BitArray. This method only copies the elements of the collection, whether they are reference… Read More
ArrayList.SyncRoot Property is used to get an object which can be used to synchronize access to the ArrayList. ArrayList represents an ordered collection of an… Read More