using System; namespace Spectre.Console.Rendering { /// /// Represents a square border. /// public sealed class SquareBoxBorder : BoxBorder { /// protected override string GetBorderPart(BoxBorderPart part) { return part switch { BoxBorderPart.TopLeft => "┌", BoxBorderPart.Top => "─", BoxBorderPart.TopRight => "┐", BoxBorderPart.Left => "│", BoxBorderPart.Right => "│", BoxBorderPart.BottomLeft => "└", BoxBorderPart.Bottom => "─", BoxBorderPart.BottomRight => "┘", _ => throw new InvalidOperationException("Unknown border part."), }; } } }