New to Telerik Document Processing? Start a free 30-day trial

Xor

Class

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

Initializes a new XOR function instance.

C#
public Xor()

Fields

The name of the function.

C#
public static readonly string FunctionName

Properties

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

C#
public override FunctionInfo FunctionInfo { get; }
Property Value:

The function info as FunctionInfo.

Overrides: FunctionBase.FunctionInfo

Gets the name of the function as "XOR".

C#
public override string Name { get; }
Property Value:

The name as String.

Overrides: FunctionBase.Name

Methods

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

C#
protected override RadExpression EvaluateOverride(FunctionEvaluationContext<bool> context)
Parameters:contextFunctionEvaluationContext<bool>

The context.

Returns:

RadExpression

Functions result as RadExpression.

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