Beispiel #1
0
 public override EvaluationResult ComparisonOperator(EvaluationResult value, EvaluationResult other)
 {
     return(Error("Boolean values can only be compared to other boolean values"));
 }
Beispiel #2
0
 protected EvaluationResult Result(object value)
 {
     return(EvaluationResult.Result(value));
 }
Beispiel #3
0
 protected EvaluationResult Error(string message)
 {
     return(EvaluationResult.Error(message));
 }
Beispiel #4
0
 public abstract EvaluationResult ComparisonOperator(EvaluationResult value, EvaluationResult other);
Beispiel #5
0
 public abstract EvaluationResult LogicalOr(EvaluationResult value, EvaluationResult other);
Beispiel #6
0
 public override EvaluationResult LogicalOr(EvaluationResult value, EvaluationResult other)
 {
     return(value);
 }
Beispiel #7
0
 public abstract EvaluationResult EqualityOperator(EvaluationResult value, EvaluationResult other);
Beispiel #8
0
 public override EvaluationResult ComparisonOperator(EvaluationResult value, EvaluationResult other)
 {
     return(value);
 }
Beispiel #9
0
 public override EvaluationResult EqualityOperator(EvaluationResult value, EvaluationResult other)
 {
     return(value);
 }
Beispiel #10
0
 public override EvaluationResult ComparisonOperator(EvaluationResult value, EvaluationResult other)
 {
     return(Error("'null' values can not be compared"));
 }
Beispiel #11
0
 public override EvaluationResult EqualityOperator(EvaluationResult value, EvaluationResult other)
 {
     return(Result(value.IsNull && other.IsNull));
 }
Beispiel #12
0
 public override EvaluationResult LogicalAnd(EvaluationResult value, EvaluationResult other)
 {
     return(other);
 }