New to Telerik Document ProcessingStart a free 30-day trial

Base class for functions requiring all arguments to be of the same type, automatically converting object arguments to the specified type.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Expressions.Functions

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Type Parameters:

T

The type T of functions arguments.

Syntax:

C#
public abstract class FunctionWithSameTypeArguments<T> : FunctionWithArguments

Inheritance: objectFunctionBaseFunctionWithArgumentsFunctionWithSameTypeArguments<T>

Derived Classes: BooleansInFunctionNumbersInFunctionStringsInFunction

Inherited Members FunctionWithArguments.EvaluateOverride(FunctionEvaluationContext<RadExpression>)FunctionBase.Evaluate(FunctionEvaluationContext<RadExpression>)FunctionBase.IsArgumentNumberValid(int)FunctionBase.NameFunctionBase.FunctionInfoFunctionBase.ArgumentConversionRules...

Constructors

Initializes a new function that converts all arguments to the specified type before evaluation.

C#
protected FunctionWithSameTypeArguments()

Methods

Converts object arguments to the specified type and calls the typed evaluation override.

C#
protected override sealed RadExpression EvaluateOverride(FunctionEvaluationContext<object> context)
Parameters:contextFunctionEvaluationContext<object>Returns:

RadExpression

Functions result as RadExpression.

Overrides: FunctionWithArguments.EvaluateOverride(FunctionEvaluationContext<object>)

Override to implement function-specific logic using strongly-typed arguments; called after type conversion.

C#
protected virtual RadExpression EvaluateOverride(FunctionEvaluationContext<T> context)
Parameters:contextFunctionEvaluationContext<T>

The context.

Returns:

RadExpression

Functions result as RadExpression.