2
using System.Collections;
3
using SimpleExpressionEvaluator.Compilation;
5
namespace SimpleExpressionEvaluator.Compilation.Functions.Operators
8
/// Summary description for NotEquals.
11
public class NotEquals:BinaryOperator<bool>
13
protected override bool EvaluateOperation(object left, object right)
15
if (left == null && right == null)
18
if (left == null || right == null)
21
if (left is string || right is string)
22
return StringComparer.CurrentCultureIgnoreCase.Compare(left, right) != 0;
26
return Comparer.Default.Compare(left, right) != 0;
30
//If the two objects can't be compared, then they certainly aren't equal.
b'\\ No newline at end of file'