ArrayList() constructor is used to initialize a new instance of the ArrayList class which will be empty and will have the default initial capacity. ArrayList… Read More
Tag Archives: CSharp-Collections-Namespace
Queue() Constructor is used to initializes a new instance of the Queue class which will be empty, and will have the default initial capacity, and… Read More
ArrayList is a powerful feature of C# language. It is the non-generic type of collection which is defined in System.Collections namespace. It is used to… Read More
ArrayList.Clone() Method is used to create a shallow copy of the specified ArrayList. A shallow copy of a collection copies only the elements of the… Read More
BitArray.Clone() Method is used to create a shallow copy of the specified BitArray. A shallow copy of a collection copies only the elements of the… Read More
Hashtable.Clone Method is used to create a shallow copy of the Hashtable. When we make a shallow copy, only the elements of the collection get… Read More
This method is used to create a shallow copy of the Queue. It just creates a copy of the Queue. The copy will have a… Read More
This method is used to create a shallow copy of the Stack. It just creates a copy of the Stack. The copy will have a… Read More
Equals(Object) Method which is inherited from the Object class is used to check if a specified Stack class object is equal to another Stack class… Read More
Equals(Object) Method which is inherited from the Object class is used to check if a specified Queue class object is equal to another Queue class… Read More
This method(comes under System.Collections namespace) is used to get a value indicating whether access to the Stack is synchronized (thread safe) or not. To guarantee… Read More
This method(comes under System.Collections namespace) is used to get the number of elements contained in the Stack. The capacity is the number of elements that… Read More
This method(comes under System.Collections Namespace) is used to return a synchronized (thread safe) wrapper for the Stack. To guarantee the thread safety of the Stack,… Read More
This method returns an IEnumerator that iterates through the Stack. And it comes under the System.Collections namespace. Syntax: public virtual System.Collections.IEnumerator GetEnumerator (); Below programs… Read More
This method(comes under System.Collections namespace) is used to inserts an object at the top of the Stack. If the Count already equals the capacity, the… Read More