Example #1
0
        public static Direction_NSEW Previous(this Direction_NSEW val)
        {
            switch (val)
            {
            case FIRST: return(LAST);

            default:    return(--val);
            }
        }
Example #2
0
        public static Direction_NSEW Next(this Direction_NSEW val)
        {
            switch (val)
            {
            case LAST: return(FIRST);

            default:   return(++val);
            }
        }