Creates an empty SortedList with an initial capacity of 16, sorted according to the specified IComparer interface.
[Visual Basic] Overloads Public Sub New( _ ByVal comparer As IComparer _ ) [C#] public SortedList( IComparer comparer ); [C++] public: SortedList( IComparer* comparer ); [JScript] public function SortedList( comparer : IComparer );
-or-
a null reference (in Visual Basic Nothing) to use the IComparable implementation of each key.
When adding elements to the list and the number of elements exceeds the capacity, the capacity is doubled.
The elements are sorted according to the specified IComparer implementation. If comparer is a null reference (Nothing), the IComparable implementation of each key is used.
SortedList Class | SortedList Members | System.Collections Namespace | SortedList Constructor Overload List | IComparer | IComparable | Capacity