Humility/Generation/Utilities/CodeBuilder.cs
/// <summary>
/// Creates an indentation with a custom amount of whitespaces per indent.
/// </summary>
Creates an indentation with a custom amount of whitespaces per indent.
Creates an indentation with a custom amount of whitespaces per indent .
public static string Indent(int amount, int spacing)
        {
            var output = string.Empty;
            var space = string.Empty;
            for (int i = 0; i < spacing; i++)
            {
                space += " ";
            }
            for (int i = 0; i < amount; i++)
            {
                output += space;
            }
            return output;
        }
public static string Indent ( int amount , int spacing ) { var output = string . Empty ; var space = string . Empty ; for ( int i = 0 ; i < spacing ; i ++ ) { space += " " ; } for ( int i = 0 ; i < amount ; i ++ ) { output += space ; } return output ; }
Creates an indentation with a custom amount of whitespaces per indent.
Creates an indentation with a custom amount of whitespaces per indent .
amount
int
spacing
int