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 provides many mathematical set operations, such as intersection...
Tag - C# SortedList Examples
IMPORTANT PROPERTIES AND METHODS OF SORTEDLIST in C#
PropertiesDescriptionCapacityGets or sets the number of elements that the SortedList<TKey,TValue> can store.CountGets the total number of elements exists in the SortedList<TKey,TValue>.IsReadOnlyReturns a boolean...
SortedList IsReadOnly Property in C#
SortedList class is a collection of (key, value) pairs which are sorted according to keys. Those pairs can be accessible by key and as well as by index(zero-based indexing). This comes under System...
Capacity of a SortedList in C#
SortedList.Capacity Property is used to get or set the capacity of a SortedList object. Syntax: public virtual int Capacity { get; set; } 123 public virtual int Capacity { get; set; } Return Value: This...
C# SortedList Examples
C# supports generic and non-generic SortedList. It is recommended to use generic SortedList<TKey, TValue> because it performs faster and less error-prone than the non-generic SortedList. Example 1: C# static void Main(string[]...