/// <summary> /// Writes the line. /// </summary> /// <param name="value">The value.</param> public override void WriteLine([CanBeNull] string value) { if (!_isOpen) { throw new InvalidOperationException(Resources.FormatWriter_IsClosed); } _builder.AppendFormatLine(value); }
/// <summary> /// Writes the line. /// </summary> /// <param name="value">The value.</param> public override void WriteLine([CanBeNull] string value) { Debug.Assert(Builder.IsEmpty); Builder.AppendFormatLine(value); Position = Builder.WriteTo(_writer, null, Position); Builder.Clear(); }