예제 #1
0
        public static int getValue(enums.EnumSimple.VEnum e)
        {
            switch (e.ordinal())
            {
            case 0:
            case 1: {
                return(10);
            }

            case 2: {
                return(20);
            }

            default: {
                return(-1);
            }
            }
        }
예제 #2
0
 public static void printConcreteEnum(enums.EnumSimple.VEnum e1)
 {
     System.Console.Out.WriteLine(e1.ordinal() + ": " + e1.name());
 }