Append Format Line to StringBuilder - CSharp Language Basics

CSharp examples for Language Basics:StringBuilder

Description

Append Format Line to StringBuilder

Demo Code


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));
        }
}

Related Tutorials