public void Clear()
Public Sub Clear
public:
virtual void Clear() sealed
abstract Clear : unit -> unit
override Clear : unit -> unit
Count is set to 0, and references to other objects from elements of the collection are also released.
This method is an O(n) operation, where n is Count.
Capacity remains unchanged. To reset the capacity of the CircularSortedListTKey, TValue to 0 as well, call the Reset method instead, which is an O(1) operation. Calling TrimExcess after Clear also resets the list, though Clear has more cost.