Table of Contents

Class ParsedExpressionUnaryOperator

Namespace
LfrlAnvil.Computable.Expressions.Constructs
Assembly
LfrlAnvil.Computable.Expressions.dll

Represents a unary operator construct.

public abstract class ParsedExpressionUnaryOperator
Inheritance
ParsedExpressionUnaryOperator
Derived
Inherited Members

Methods

CreateUnaryExpression(Expression)

Creates an expression.

[Pure]
protected abstract Expression CreateUnaryExpression(Expression operand)

Parameters

operand Expression

Argument.

Returns

Expression

New Expression.

TryCreateFromConstant(ConstantExpression)

Attempts to create an expression from a constant.

[Pure]
protected virtual Expression? TryCreateFromConstant(ConstantExpression operand)

Parameters

operand ConstantExpression

Constant argument.

Returns

Expression

New Expression or null when it could not be created.