Exemplo n.º 1
0
 public static eRat GetNextEnumValueOf(eRat value)
 {
     return((from eRat val in Enum.GetValues(typeof(eRat))
             where val > value
             orderby val
             select val).Take(1).ToArray()[0]);
 }
Exemplo n.º 2
0
 public static eRat GetNextEnumValueOf(eRat value)
 {
     return((from eRat val in Enum.GetValues(typeof(eRat))
             where val > value
             orderby val
             select val).First());
 }