Method TrimExcess TrimExcess() Reduces the internal capacity of this dictionary to the size needed to hold the current entries. Declaration public void TrimExcess()