Method TrimExcess TrimExcess() Sets the capacity to the actual number of items in the list, if that number is less than a threshold value. Declaration public void TrimExcess()