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