Пример #1
0
        public static WixExpression Not(WixExpression wixExpressionBuilder)
        {
            if (wixExpressionBuilder is null)
            {
                throw new ArgumentNullException(nameof(wixExpressionBuilder));
            }

            return(new WixExpression($"{WixUnaryExpressionOperator.Not} {wixExpressionBuilder.ValueWithParentheses}"));
        }
Пример #2
0
        public static WixExpression Create(WixExpression lhs, WixBinaryExpressionOperator @operator, WixExpression rhs)
        {
            if (lhs is null)
            {
                throw new ArgumentNullException(nameof(lhs));
            }

            if (@operator is null)
            {
                throw new ArgumentNullException(nameof(@operator));
            }

            if (rhs is null)
            {
                throw new ArgumentNullException(nameof(rhs));
            }

            return(new WixExpression($"{lhs.ValueWithParentheses} {@operator} {rhs.ValueWithParentheses}"));
        }
Пример #3
0
 public static WixExpression Xor(WixExpression left, WixExpression right)
 => Create(left, WixLogicalExpressionOperator.Xor, right);
Пример #4
0
 public static WixExpression And(WixExpression left, WixExpression right)
 => Create(left, WixLogicalExpressionOperator.And, right);
Пример #5
0
 public WixExpression Xor(WixExpression other)
 => Xor(this, other);
Пример #6
0
 public WixExpression Or(WixExpression other)
 => Or(this, other);
Пример #7
0
 public WixExpression And(WixExpression other)
 => And(this, other);
Пример #8
0
 public static WixExpression LogicalNot(WixExpression expression)
 => Not(expression);
Пример #9
0
 public static WixExpression BitwiseOr(WixExpression left, WixExpression right)
 => Or(left, right);
Пример #10
0
 public static WixExpression BitwiseAnd(WixExpression left, WixExpression right)
 => And(left, right);