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
TLeftArgLeft argument's type.
TRightArgRight 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
expressionConstantExpressionSource constant expression.
resultTLeftArgout 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
expressionConstantExpressionSource constant expression.
resultTRightArgout parameter that returns the underlying value.
Returns
- bool
true if value was extracted successfully, otherwise false.