An ExprBinary is a type of IExpr that
represents a binary scalar expression. These expressions
provide a full range of mathematical functions, such as
addition and subtraction operators.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public class ExprBinary : IExpr, IQueryNode
Public Class ExprBinary _ Implements IExpr, IQueryNode
public ref class ExprBinary : IExpr, IQueryNode
Members
All Members | Constructors | Methods | Properties | Fields | |
Icon | Member | Description |
---|---|---|
ExprBinaryExprBinaryNew(ExprBinary..::ExprBinaryOp, IExpr, IExpr) |
The ExprBinary will compute the specified
specified function on the specified
lhs and rhs parameters.
| |
DIVIDE |
Division operator.
| |
Equals(Object) | (Inherited from Object.) | |
Finalize()() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
Function |
Gets and sets the the mathematical function
for this ExprBinary.
| |
GetHashCode()() | Serves as a hash function for a particular type. GetHashCode()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) | |
GetType()() | Gets the Type of the current instance. (Inherited from Object.) | |
Lhs |
Gets and sets the left-hand side of this binary expression.
| |
LOG |
Logarithm operator.
| |
MemberwiseClone()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
MINUS |
Subtraction operator.
| |
MOD |
Modulo (remainder) operator.
| |
MULTIPLY |
Multiplication operator.
| |
PLUS |
Addition operator.
| |
POWER |
Exponentiation operator.
| |
Rhs |
Gets and sets the right-hand side of this binary expression.
| |
ROUND |
Round operator.
| |
ToString()() |
Returns the string form of this ExprBinary.
(Overrides Object.ToString()().) | |
ToWire()() |
Returns the wire form of this ExprBinary.
| |
TRUNC |
Truncation operator.
| |
ValidateSyntax()() |
Validates the syntax of this ExprBinary.
|
Examples
This code subtracts one from an integer property named Year:
In the example, the ExprBinary object is set in a LookupList object.
CopyC#
LookupList lookup = new LookupList(); lookup.add(new ExprBinary(ExprBinary.MINUS, new ExprKey("Year"), new ExprConstant("1")));
Inheritance Hierarchy
Object | |
ExprBinary |