Closed lastunicorn closed 1 month ago
Instead of adding new parameters to the static method, I created one that lets the caller set any property on the HorizontalLine
before displaying it.
Usage:
HorizontalLine.QuickDisplay(horizontalLine =>
{
horizontalLine.Margin = 10;
horizontalLine.ForegroundColor = ConsoleColor.Blue;
});
As a developer using the
HorizontalLine
control I want to be able to provide a margin parameter when using theQuickDisplay
approach so that I am able to write more compact code.