Tag Archives: CSharp-Generic-Namespace

In C#, List is a generic collection which is used to store the elements or objects in the form of a list and it is… Read More
In C#, SortedDictionary is a generic collection which is used to store the key/value pairs in the sorted form and the sorting is done on… Read More
A LinkedList is a linear data structure which stores element in the non-contiguous location. The elements in a linked list are linked with each other… Read More
In C#, SortedSet is a collection of objects in sorted order. It is of the generic type collection and defined under System.Collections.Generic namespace. It also… Read More
In C#, HashSet is an unordered collection of unique elements. This collection is introduced in .NET 3.5. It supports the implementation of sets and uses… Read More
List<T>.FindIndex Method is used to search for an element that matches the conditions defined by a specified predicate and returns the index of the first… Read More
In C#, Dictionary is a generic collection which is generally used to store key/value pairs. The working of Dictionary is quite similar to the non-generic… Read More
List<T>.Sort() Method is used to sort the elements or a portion of the elements in the List<T> using either the specified or default IComparer<T> implementation… Read More
In C#, the SortedDictionary<TKey,TValue> class is used to represent the collection of key/value pairs. This pair is in sorted form and the sorting is done… Read More
Queue<T>.GetEnumerator Method is used to get an enumerator which can iterate through the Queue. And it comes under the System.Collections.Generic namespace. Syntax: public System.Collections.Generic.Queue<T>.Enumerator GetEnumerator… Read More
Queue<T>.CopyTo(T[], Int32) Method is used to copy the Queue elements to an existing one-dimensional Array, starting at the specified array index. The elements are copied… Read More
Stack<T>.Pop Method is used to remove and returns the object at the top of the Stack<T>. This method comes under the System.Collections.Generic namespace. Syntax: public… Read More
The Dequeue() method is used to returns the object at the beginning of the Queue. This method is similar to the Peek() Method. The only… Read More
Stack<T>.GetEnumerator Method is used to get an IEnumerator that iterates through the Stack. And it comes under the System.Collections.Generic namespace. Syntax: public System.Collections.Generic.Stack<T>.Enumerator GetEnumerator ();… Read More
List<T>.Sort() Method is used to sort the elements or a portion of the elements in the List<T> using either the specified or default IComparer<T> implementation… Read More