1
0

Added customized AppendLine() for StringBuilder

This commit is contained in:
2022-05-06 19:29:55 +02:00
parent e38864b32b
commit d9ba209402
6 changed files with 36 additions and 2 deletions

View File

@@ -203,5 +203,16 @@ namespace System
return false;
}
}
/// <summary>
/// Appends a copy of the specified string followed by the specified line terminator
/// to the end of the current <see cref="StringBuilder"/> object.
/// </summary>
/// <param name="sb">The <see cref="StringBuilder"/> object.</param>
/// <param name="value">The string to append.</param>
/// <param name="newLine">The line terminator.</param>
/// <returns></returns>
public static StringBuilder AppendLine(this StringBuilder sb, string value, string newLine)
=> sb.Append(value).Append(newLine);
}
}