Class ParsedExpressionUnaryOperator<TArg>
- Namespace
- LfrlAnvil.Computable.Expressions.Constructs
- Assembly
- LfrlAnvil.Computable.Expressions.dll
Represents a unary operator construct.
public abstract class ParsedExpressionUnaryOperator<TArg> : ParsedExpressionTypedUnaryOperator
Type Parameters
TArg
Argument's type.
- Inheritance
-
ParsedExpressionUnaryOperator<TArg>
- Derived
- Inherited Members
Constructors
ParsedExpressionUnaryOperator()
Creates a new ParsedExpressionUnaryOperator<TArg> instance.
protected ParsedExpressionUnaryOperator()
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.