| | | 1 | | namespace ArturRios.Util.Console; |
| | | 2 | | |
| | | 3 | | /// <summary> |
| | | 4 | | /// Helpers for writing formatted output to the system console. |
| | | 5 | | /// </summary> |
| | | 6 | | public static class CustomConsole |
| | | 7 | | { |
| | | 8 | | /// <summary> |
| | | 9 | | /// Writes a line composed of a single character repeated a given number of times. |
| | | 10 | | /// </summary> |
| | | 11 | | /// <param name="c">The character to repeat. Defaults to '-'.</param> |
| | | 12 | | /// <param name="quantity">How many times to repeat <paramref name="c"/>. Defaults to 100.</param> |
| | | 13 | | /// <exception cref="ArgumentOutOfRangeException">Thrown when <paramref name="quantity"/> is negative.</exception> |
| | 15 | 14 | | public static void WriteCharLine(char c = '-', int quantity = 100) => System.Console.WriteLine(new string(c, quantit |
| | | 15 | | } |