public static int GetIndex(PDLStringQueryOp op)
        {
            switch (op)
            {
            case PDLStringQueryOp.Contains: return(0);

            case PDLStringQueryOp.EndsWith: return(1);

            case PDLStringQueryOp.StartsWith: return(2);

            case PDLStringQueryOp.IsString: return(3);

            default: throw new PDLException("undefined operator");
            }
        }
Esempio n. 2
0
 public static int GetIndex(PDLStringQueryOp op)
 {
     switch (op)
     {
         case PDLStringQueryOp.Contains: return 0;
         case PDLStringQueryOp.EndsWith: return 1;
         case PDLStringQueryOp.StartsWith: return 2;
         case PDLStringQueryOp.IsString: return 3;
         default: throw new PDLException("undefined operator");
     }
 }