/// <summary> /// Adds all internally buffered elements to the receiver's target, then resets the current buffer size to zero. /// </summary> public void Flush() { if (this.size > 0) { list.SetSize(this.size); this.target.AddAllOf(list); this.size = 0; } }