KGy SOFT

CircularSortedListTKey, TValueReset Method

KGy SOFT Core Libraries Help

Namespace:  KGySoft.Collections
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 6.0.0
Syntax

public void Reset()
Remarks

Count and Capacity are set to 0, and references to other objects from elements of the collection are also released.

This method is an O(1) operation.

Calling Clear and then TrimExcess methods also resets the CircularSortedListTKey, TValue, though Clear is an O(n) operation, where n is Count.

See Also

Reference