Esempio n. 1
0
 /// <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);
 }
Esempio n. 2
0
 /// <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();
 }