BelhardTraining.LessonIO.Program.Header C# (CSharp) Метод

Header() приватный статический Метод

private static Header ( string text ) : void
text string
Результат void
        private static void Header(string text)
        {
            ConsoleColor oldColor = Console.ForegroundColor;
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine(text);
            Console.WriteLine(new string('=', text.Length));
            Console.ForegroundColor = oldColor;
            Console.WriteLine();
        }