Class ParsedExpressionBinaryOperator<TLeftArg, TRightArg>
- Namespace
- LfrlAnvil.Computable.Expressions.Constructs
- Assembly
- LfrlAnvil.Computable.Expressions.dll
Represents a binary operator construct.
public abstract class ParsedExpressionBinaryOperator<TLeftArg, TRightArg> : ParsedExpressionTypedBinaryOperator
Type Parameters
TLeftArg
Left argument's type.
TRightArg
Right argument's type.
- Inheritance
-
ParsedExpressionBinaryOperator<TLeftArg, TRightArg>
- Derived
- Inherited Members
Constructors
ParsedExpressionBinaryOperator()
Creates a new ParsedExpressionBinaryOperator<TLeftArg, TRightArg> instance.
protected ParsedExpressionBinaryOperator()
Methods
TryGetLeftArgumentValue(ConstantExpression, out TLeftArg)
Attempts to extract a constant value of a left argument.
protected static bool TryGetLeftArgumentValue(ConstantExpression expression, out TLeftArg result)
Parameters
expression
ConstantExpressionSource constant expression.
result
TLeftArgout parameter that returns the underlying value.
Returns
- bool
true if value was extracted successfully, otherwise false.
TryGetRightArgumentValue(ConstantExpression, out TRightArg)
Attempts to extract a constant value of a right argument.
protected static bool TryGetRightArgumentValue(ConstantExpression expression, out TRightArg result)
Parameters
expression
ConstantExpressionSource constant expression.
result
TRightArgout parameter that returns the underlying value.
Returns
- bool
true if value was extracted successfully, otherwise false.