Пример #1
0
        static void ExtensionMethods()
        {
            Months m = Months.January;
            Months n = MonthUtilities.NextMonth(m);

            Console.WriteLine($"The month after {m:G} is {n:G}.");

            m = Months.December;
            n = m.NextMonthE();
            Console.WriteLine($"The month after {m:G} is {n:G}.");
        }