Beispiel #1
0
        public override bool Evaluate(TContext context)
        {
            var left  = LeftOperand.NonNull(nameof(LeftOperand));
            var right = RightOperand.NonNull(nameof(RightOperand));

            return(left.Evaluate(context) != right.Evaluate(context));
        }
Beispiel #2
0
        public override bool Evaluate(TContext context)
        {
            var left  = LeftOperand.NonNull(nameof(LeftOperand));
            var right = RightOperand.NonNull(nameof(RightOperand));

            var lv = left.Evaluate(context);
            var rv = right.Evaluate(context);

            if (lv == null && rv == null)
            {
                return(true);
            }
            if (lv == null || rv == null)
            {
                return(false);
            }

            return(!lv.Equals(rv));
        }