Exemplo n.º 1
0
        public static int GetIndex(PDLBinarySetOperator op)
        {
            switch (op)
            {
            case PDLBinarySetOperator.Intersection: return(0);

            case PDLBinarySetOperator.Union: return(1);

            default: throw new PDLException("undefined operator");
            }
        }
Exemplo n.º 2
0
 public static int GetIndex(PDLBinarySetOperator op)
 {
     switch (op)
     {
         case PDLBinarySetOperator.Intersection: return 0;
         case PDLBinarySetOperator.Union: return 1;
         default: throw new PDLException("undefined operator");
     }
 }