According to the documentation:
Capacity remains unchanged. To reset the capacity of the List, call the TrimExcess method or set the Capacity property directly. Decreasing the capacity reallocates memory and copies all the elements in the List. Trimming an empty List sets the capacity of the List to the default capacity.
Of course you can confirm this for yourself simply by setting a breakpoint and checking the value of the Capacity
property before and after you call Clear
.
There is no Reset
method (unless you're referring to some extension method), but the documentation quoted above indicates you can reset the capacity by calling TrimExcess
.