SortedList Constructor

SortedList Constructor

 

Initializes a new instance of the SortedList class.

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

NameDescription
System_CAPS_pubmethodSortedList()

Initializes a new instance of the SortedList class that is empty, has the default initial capacity, and is sorted according to the IComparable interface implemented by each key added to the SortedList object.

System_CAPS_pubmethodSortedList(IComparer)

Initializes a new instance of the SortedList class that is empty, has the default initial capacity, and is sorted according to the specified IComparer interface.

System_CAPS_pubmethodSortedList(IComparer, Int32)

Initializes a new instance of the SortedList class that is empty, has the specified initial capacity, and is sorted according to the specified IComparer interface.

System_CAPS_pubmethodSortedList(IDictionary)

Initializes a new instance of the SortedList class that contains elements copied from the specified dictionary, has the same initial capacity as the number of elements copied, and is sorted according to the IComparable interface implemented by each key.

System_CAPS_pubmethodSortedList(IDictionary, IComparer)

Initializes a new instance of the SortedList class that contains elements copied from the specified dictionary, has the same initial capacity as the number of elements copied, and is sorted according to the specified IComparer interface.

System_CAPS_pubmethodSortedList(Int32)

Initializes a new instance of the SortedList class that is empty, has the specified initial capacity, and is sorted according to the IComparable interface implemented by each key added to the SortedList object.

Return to top
Show:
© 2016 Microsoft