Class NotEqual
- Namespace
- Albatross.Expression.Infix
- Assembly
- Albatross.Expression.dll
Infix expression that performs not-equal comparison between two operands. Uses the "<>" operator with precedence 50.
public class NotEqual : ComparisonInfixOperation, IInfixExpression, IExpression, IToken, IHasPrecedence
- Inheritance
-
NotEqual
- Implements
- Inherited Members
- Extension Methods
Constructors
NotEqual()
Initializes a new instance of the NotEqual class with operator "<>" and precedence 50.
public NotEqual()
Methods
Interpret(int)
Interprets the comparison result to determine if the operands are not equal.
public override bool Interpret(int comparisonResult)
Parameters
comparisonResultintThe result from comparing the operands (-1, 0, or 1).
Returns
- bool
true if the operands are not equal (comparison result is not 0); otherwise, false.