Exemplo n.º 1
0
        public static GradeLevels GradeAbove(this GradeLevels grade)
        {
            int raw = (int)grade;

            if (grade.IsSingleGrade() && raw < (int)GradeLevels.Grade12)
            {
                return((GradeLevels)(raw << 1));
            }

            return(GradeLevels.NA);
        }
Exemplo n.º 2
0
 public static GradeLevels GradeBelow(this GradeLevels grade)
 {
     return(grade.IsSingleGrade()
         ? (GradeLevels)((int)grade >> 1)
         : GradeLevels.NA);
 }