public void Reset()
Public Sub Reset
public:
void Reset()
member Reset : unit -> unit
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 list, though Clear is an O(n) operation, where n is Count.