2
using System.Collections;
3
using SimpleExpressionEvaluator.Compilation;
4
using SimpleExpressionEvaluator.Utilities;
6
namespace SimpleExpressionEvaluator.Compilation.Functions.Operators
9
/// Summary description for GreaterThan.
12
public class GreaterThan:BinaryOperator<bool>
14
protected override bool EvaluateOperation(object leftVal, object rightVal)
16
if (leftVal == null && rightVal == null)
25
if (leftVal is string || rightVal is string)
26
return StringComparer.CurrentCultureIgnoreCase.Compare(leftVal.ToString(), rightVal.ToString()) > 0;
31
return Comparer.Default.Compare(leftVal, rightVal) > 0;
b'\\ No newline at end of file'