Click or drag to resize

EvaluatorGroupParameterizeTParameter1, TResult Method (IValueEvaluatorTResult, IEvaluatorParameterTParameter1, ParameterAction)

Parameterizes an evaluator with one parameter.

Namespace:  AGI.Foundation
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.1.418.0 (24.1.418.0)
Syntax
public ParameterizedValueEvaluator1<TParameter1, TResult> Parameterize<TParameter1, TResult>(
	IValueEvaluator<TResult> evaluatorToParameterize,
	IEvaluatorParameter<TParameter1> parameter1,
	ParameterAction parameterAction
)

Parameters

evaluatorToParameterize
Type: AGI.Foundation.InfrastructureIValueEvaluatorTResult
The evaluator to parameterize.
parameter1
Type: AGI.Foundation.InfrastructureIEvaluatorParameterTParameter1
The value of the first parameter.
parameterAction
Type: AGI.Foundation.InfrastructureParameterAction
Indicates whether an exception should be thrown if any of the specified parameters are not actually parameters to the evaluatorToParameterize.

Type Parameters

TParameter1
The type of the first parameter.
TResult
The type of the result of evaluating the evaluator.

Return Value

Type: ParameterizedValueEvaluator1TParameter1, TResult
An evaluator that can be evaluated with the given parameters.
Exceptions
ExceptionCondition
ArgumentNullException Thrown when evaluatorToParameterize or parameter1 is .
See Also