Method TrimExcess TrimExcess() Reduces the internal capacity to the number of entries in the collection. Declaration public void TrimExcess()