log4net SDK Documentation - Microsoft .NET Framework 4.0

AppenderCollection.TrimToSize Method 

Sets the capacity to the actual number of elements.

[Visual Basic]
Overridable Public Sub TrimToSize()
[C#]
public virtual void TrimToSize();

See Also

AppenderCollection Class | log4net.Appender Namespace