Files
AutoBet/AutoBet.ApiGenerator/Extensions/StringBuilderExtensions.cs
T

23 lines
497 B
C#
Raw Normal View History

2020-04-13 15:16:46 +01:00
using System;
using System.Collections.Generic;
using System.Text;
namespace AutoBet.ApiGenerator.Extensions
{
internal static class StringBuilderExtensions
{
public static void AppendWithIndent(this StringBuilder sb, int spaces, string value = null)
{
for (var i = 0; i < spaces; i++)
{
sb.Append(" ");
}
if(value != null)
{
sb.Append(value);
}
}
}
}