AppendLine(String, Boolean)

Appends the specified string followed by the default line terminator to this instance.

Declaration
public static StringBuilder AppendLine(this StringBuilder sb, string value, bool remember)
Example
var sb = new StringBuilder("It’s not a bug;");

sb.AppendLine("it’s an undocumented feature.", true);
Result
"It’s not a bug;
it’s an undocumented feature."

Last updated