通过BinaryOperator检查null

时间:2011-05-11 07:53:55

标签: winforms .net-3.5 devexpress

GroupOperator groupApplyOn = new GroupOperator();
         groupApplyOn.OperatorType = GroupOperatorType.And;
        groupApplyOn.Operands.Add(isB);
        groupApplyOn.Operands.Add(isA);
        groupApplyOn.Operands.Add(isC);

其中isX是BinaryOperator ..

BinaryOperator isB = new BinaryOperator("VALIDITY", null,
            BinaryOperatorType.Equal);

此代码给出了错误 - 如果“VALIDITY”为空,如何检查public UnaryOperator IsNull()

1 个答案:

答案 0 :(得分:2)

改为使用NullOperator