Class
UnaryOperatorExpression

Base for expressions that apply a single operator to one operand (e.g., negation, percent).

Definition

Constructors

UnaryOperatorExpression(RadExpression)

Initializes a new unary operator expression with the specified operand.

Declaration

cs-api-definition
protected UnaryOperatorExpression(RadExpression operand)

Parameters

operand

RadExpression

The operand.

Properties

ArgumentConversionRules

Gets the rules for converting the operand to a numeric value for evaluation.

Declaration

cs-api-definition
public virtual ArgumentConversionRules ArgumentConversionRules { get; }

Property Value

ArgumentConversionRules

The argument conversion rules.

Operand

Gets the single operand that this operator acts upon.

Declaration

cs-api-definition
public RadExpression Operand { get; }

Property Value

RadExpression

The operand.

Methods

GetValueOverride()

Converts the operand to a number and delegates to the derived class for specific operation logic.

Declaration

cs-api-definition
protected override sealed RadExpression GetValueOverride()

Returns

RadExpression

The value as RadExpression.

Overrides RadExpression.GetValueOverride()

GetValueOverride(double)

Calculates the result of applying the operator to the numeric operand; override to define operator-specific behavior.

Declaration

cs-api-definition
protected abstract RadExpression GetValueOverride(double operand)

Parameters

operand

double

The operand as double.

Returns

RadExpression

Value as RadExpression.