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();
        }