Closed BryanWilhite closed 3 months ago
public static string GetConsoleIndentation(int numberOfSpaces, int indentationLevel) { if (indentationLevel == 0) return string.Empty; string spaces = Enumerable.Repeat(" ", numberOfSpaces).Aggregate((a,i) => $"{a}{i}"); return Enumerable.Repeat(spaces, indentationLevel).Aggregate((a,i) => $"{a}{i}"); }