SortedList<TKey, TValue> Constructor

 

Initializes a new instance of the SortedList<TKey, TValue> class.

Namespace:   System.Collections.Generic
Assembly:  System (in System.dll)

NameDescription
System_CAPS_pubmethodSortedList<TKey, TValue>()

Initializes a new instance of the SortedList<TKey, TValue> class that is empty, has the default initial capacity, and uses the default IComparer<T>.

System_CAPS_pubmethodSortedList<TKey, TValue>(IComparer<TKey>)

Initializes a new instance of the SortedList<TKey, TValue> class that is empty, has the default initial capacity, and uses the specified IComparer<T>.

System_CAPS_pubmethodSortedList<TKey, TValue>(IDictionary<TKey, TValue>)

Initializes a new instance of the SortedList<TKey, TValue> class that contains elements copied from the specified IDictionary<TKey, TValue>, has sufficient capacity to accommodate the number of elements copied, and uses the default IComparer<T>.

System_CAPS_pubmethodSortedList<TKey, TValue>(IDictionary<TKey, TValue>, IComparer<TKey>)

Initializes a new instance of the SortedList<TKey, TValue> class that contains elements copied from the specified IDictionary<TKey, TValue>, has sufficient capacity to accommodate the number of elements copied, and uses the specified IComparer<T>.

System_CAPS_pubmethodSortedList<TKey, TValue>(Int32)

Initializes a new instance of the SortedList<TKey, TValue> class that is empty, has the specified initial capacity, and uses the default IComparer<T>.

System_CAPS_pubmethodSortedList<TKey, TValue>(Int32, IComparer<TKey>)

Initializes a new instance of the SortedList<TKey, TValue> class that is empty, has the specified initial capacity, and uses the specified IComparer<T>.

Return to top
Show: