23 lines
497 B
C#
23 lines
497 B
C#
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);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|