ClassXor
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
Namespace:Telerik.Windows.Documents.Spreadsheet.Expressions.Functions
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public class Xor : BooleansInFunction
Inheritance: objectFunctionBaseFunctionWithArgumentsFunctionWithSameTypeArguments<bool>BooleansInFunctionXor
Inherited Members
Constructors
Fields
FunctionName
The name of the function.
Properties
FunctionInfo
Gets the metadata describing the XOR function's category, description, and argument requirements.
Declaration
public override FunctionInfo FunctionInfo { get; }
Property Value
The function info as FunctionInfo.
Overrides
Methods
EvaluateOverride(FunctionEvaluationContext<bool>)
Evaluates the XOR function by counting TRUE arguments and returning TRUE if the count is odd, FALSE if even.
Declaration
protected override RadExpression EvaluateOverride(FunctionEvaluationContext<bool> context)
Parameters
context
FunctionEvaluationContext<bool>
The context.
Returns
Functions result as RadExpression.
Overrides