Class
UnaryPlusExpression

Expression that preserves the sign of a numeric value, representing the unary plus operator (+).

Definition

Constructors

UnaryPlusExpression(RadExpression)

Initializes a new unary plus expression that will preserve the operand's sign.

Declaration

cs-api-definition
public UnaryPlusExpression(RadExpression operand)

Parameters

operand

RadExpression

The operand.

Properties

OperatorInfo

Gets the operator metadata for the unary plus operator.

Declaration

cs-api-definition
public override OperatorInfo OperatorInfo { get; }

Property Value

OperatorInfo

The operator info as OperatorInfo.

Overrides OperatorExpression.OperatorInfo

Methods

GetValueOverride(double)

Returns the operand unchanged, effectively preserving its sign.

Declaration

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

Parameters

operand

double

The operand as double.

Returns

RadExpression

Value as RadExpression.

Overrides UnaryOperatorExpression.GetValueOverride(double)