Class
Xor

Implements the XOR function, which returns TRUE when an odd number of logical arguments are TRUE and FALSE when an even number are TRUE.

Definition

Constructors

Xor()

Initializes a new XOR function instance.

Declaration

cs-api-definition
public Xor()

Fields

FunctionName

The name of the function.

Declaration

cs-api-definition
public static readonly string FunctionName

Field Value

string

Properties

FunctionInfo

Gets the metadata describing the XOR function's category, description, and argument requirements.

Declaration

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

Property Value

FunctionInfo

The function info as FunctionInfo.

Overrides FunctionBase.FunctionInfo

Name

Gets the name of the function as "XOR".

Declaration

cs-api-definition
public override string Name { get; }

Property Value

string

The name as String.

Overrides FunctionBase.Name

Methods

EvaluateOverride(FunctionEvaluationContext<bool>)

Evaluates the XOR function by counting TRUE arguments and returning TRUE if the count is odd, FALSE if even.

Declaration

cs-api-definition
protected override RadExpression EvaluateOverride(FunctionEvaluationContext<bool> context)

Parameters

context

FunctionEvaluationContext<bool>

The context.

Returns

RadExpression

Functions result as RadExpression.

Overrides FunctionWithSameTypeArguments<bool>.EvaluateOverride(FunctionEvaluationContext<bool>)