AppendLineFormat

public static StringBuilder AppendLineFormat(this StringBuilder builder, string format, params object[] arguments)
{
	string value = String.Format(format, arguments);

	builder.AppendLine(value);

	return builder;
}
Example:
StringBuilder builder = new StringBuilder();
builder.AppendLineFormat("File name: {0} (line: {1}, column: {2})", fileName, lineNumber, column);
builder.AppendLineFormat("Message: {0}", exception.Message);

Description

Appends a formatted string and the default line terminator to to this StringBuilder instance.

Details

Double click on the code to select all.

 

;