Class ParsedExpressionBinaryOperator
- Namespace
- LfrlAnvil.Computable.Expressions.Constructs
- Assembly
- LfrlAnvil.Computable.Expressions.dll
Represents a binary operator construct.
public abstract class ParsedExpressionBinaryOperator
- Inheritance
-
ParsedExpressionBinaryOperator
- Derived
- Inherited Members
Methods
CreateBinaryExpression(Expression, Expression)
Creates an expression.
[Pure]
protected abstract Expression CreateBinaryExpression(Expression left, Expression right)
Parameters
left
ExpressionLeft argument.
right
ExpressionRight argument.
Returns
- Expression
New Expression.
TryCreateFromOneConstant(ConstantExpression, Expression)
Attempts to create an expression from one constant.
[Pure]
protected virtual Expression? TryCreateFromOneConstant(ConstantExpression left, Expression right)
Parameters
left
ConstantExpressionLeft constant argument.
right
ExpressionRight argument.
Returns
- Expression
New Expression or null when it could not be created.
TryCreateFromOneConstant(Expression, ConstantExpression)
Attempts to create an expression from one constant.
[Pure]
protected virtual Expression? TryCreateFromOneConstant(Expression left, ConstantExpression right)
Parameters
left
ExpressionLeft argument.
right
ConstantExpressionRight constant argument.
Returns
- Expression
New Expression or null when it could not be created.
TryCreateFromTwoConstants(ConstantExpression, ConstantExpression)
Attempts to create an expression from two constants.
[Pure]
protected virtual Expression? TryCreateFromTwoConstants(ConstantExpression left, ConstantExpression right)
Parameters
left
ConstantExpressionLeft constant argument.
right
ConstantExpressionRight constant argument.
Returns
- Expression
New Expression or null when it could not be created.