Initial commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user