From 37ce3fb33d59664080bbef0f00e0dc302233cf53 Mon Sep 17 00:00:00 2001 From: Timerix22 Date: Fri, 18 Nov 2022 03:01:49 +0600 Subject: [PATCH] ColoredCOnsole fix --- DTLib/ColoredConsole.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/DTLib/ColoredConsole.cs b/DTLib/ColoredConsole.cs index 44209e6..3e56569 100644 --- a/DTLib/ColoredConsole.cs +++ b/DTLib/ColoredConsole.cs @@ -42,6 +42,12 @@ public static class ColoredConsole // вывод цветного текста public static void Write(params string[] input) { + if (input.Length == 1) + { + Write(input[0]); + return; + } + if (input.Length % 2 != 0) throw new Exception("ColoredConsole.Write() error: every text string must have color string before");