Пример #1
0
        public static string OperatorToString(this BlockOrLogicOperator oper)
        {
            switch (oper)
            {
            case BlockOrLogicOperator.OpenParenthesis:
                return("(");

            case BlockOrLogicOperator.ClosedParenthesis:
                return(")");

            case BlockOrLogicOperator.And:
                return("AND");

            case BlockOrLogicOperator.Or:
                return("OR");

            default:
                return("UNKNOWNOPERATOR");
            }
        }
Пример #2
0
 public ConditionExpression(BlockOrLogicOperator blockOrLogicOperator)
 {
     Type = ConditionExpressionType.BlockOrLogicOperator;
     BlockOrLogicOperator = blockOrLogicOperator;
 }