Exemplo n.º 1
0
 private static bool ValidateExpression(string expression, Node node)
 {
     return String.IsNullOrWhiteSpace(expression)
             || node.Evaluate<bool>(expression);
 }
Exemplo n.º 2
0
 private static bool ValidateCompare(Node node, string compareType, string against)
 {
     var @operator = GetCompareOperator(compareType);
     return @operator == null
             || String.IsNullOrWhiteSpace(against)
             || node.Evaluate<bool>("value " + @operator + "(" + against + ")");
 }