SortedList<TKey, TValue> Constructor

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

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method SortedList<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>.
Public method SortedList<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>.
Public method SortedList<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>.
Public method SortedList<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>.
Public method SortedList<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>.
Public method SortedList<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>.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft