Simplify Pizza (C#) folder structure

This commit is contained in:
Zev Spitz
2022-01-17 08:31:36 +02:00
parent 516c8dbc34
commit 83c053fbd1
6 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
using System.Text;
namespace Pizza
{
internal static class StringBuilderExtensions
{
/// <summary>
/// Extensions for adding new lines of specific value.
/// </summary>
/// <param name="stringBuilder">Extended class.</param>
/// <param name="value">Value which will be repeated.</param>
/// <param name="numberOfLines">Number of lines that will be appended.</param>
public static void AppendLine(this StringBuilder stringBuilder, string value, int numberOfLines)
{
for (int i = 0; i < numberOfLines; i++)
{
stringBuilder.AppendLine(value);
}
}
}
}