CSharp examples for Language Basics:StringBuilder
Append Format Line to StringBuilder
using System.Text; public class Main{ public static StringBuilder AppendFormatLine(this StringBuilder source, string format, params object[] args) {// w ww .j a v a 2 s . c o m source.ValidateNotNullParameter(nameof(source)); return source.AppendLine(string.Format(format, args)); } }