SortedList<TKey, TValue>.Clear Method ()
.NET Framework (current version)
Removes all elements from the SortedList<TKey, TValue>.
Assembly: System (in System.dll)
Count is set to zero, and references to other objects from elements of the collection are also released.
Capacity remains unchanged. To reset the capacity of the SortedList<TKey, TValue>, call TrimExcess or set the Capacity property directly. Trimming an empty SortedList<TKey, TValue> sets the capacity of the SortedList<TKey, TValue> to the default capacity.
This method is an O(n) operation, where n is Count.
Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Available since 10
.NET Framework
Available since 2.0
Show: