Пример #1
0
        public static Weekday Add(this Weekday day, int value)
        {
            int a = (day.ToIndex() + value) % 7;

            if (a < 0)
            {
                a = 7 + a;
            }
            return(FromIndex(a));
        }