/// <summary> /// Copies the buffered content to the unbuffered writer and invokes flush on it. /// Additionally causes this instance to no longer buffer and direct all write operations /// to the unbuffered writer. /// </summary> public override void Flush() { if (IsBuffering) { IsBuffering = false; TargetWriter = UnbufferedWriter; Buffer.WriteTo(UnbufferedWriter, HtmlEncoder); } UnbufferedWriter.Flush(); }
/// <summary> /// Copies the buffered content to the unbuffered writer and invokes flush on it. /// Additionally causes this instance to no longer buffer and direct all write operations /// to the unbuffered writer. /// </summary> public override void Flush() { if (IsBuffering) { IsBuffering = false; TargetWriter = UnbufferedWriter; CopyTo(UnbufferedWriter); } UnbufferedWriter.Flush(); }