Click or drag to resize

EvaluatorGroupCreateEvaluatorTEvaluator, TParameter1, TParameter2 Method (EvaluatorGroupCallback2TEvaluator, TParameter1, TParameter2, TParameter1, TParameter2)

Creates an evaluator in the context of this evaluator group by invoking a callback, if the evaluator does not already exist in the group.

Namespace:  AGI.Foundation
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 19.1.398.0 (19.1.398.0)
Syntax
public TEvaluator CreateEvaluator<TEvaluator, TParameter1, TParameter2>(
	EvaluatorGroupCallback2<TEvaluator, TParameter1, TParameter2> callback,
	TParameter1 parameter1,
	TParameter2 parameter2
)
where TEvaluator : IEvaluator

Parameters

callback
Type: AGI.FoundationEvaluatorGroupCallback2TEvaluator, TParameter1, TParameter2
The callback delegate to use to create the evaluator if the evaluator does not already exist.
parameter1
Type: TParameter1
The first parameter to pass to the callback delegate.
parameter2
Type: TParameter2
The second parameter to pass to the callback delegate.

Type Parameters

TEvaluator
The type of evaluator to create.
TParameter1
The type of the first parameter to the callback delegate.
TParameter2
The type of the second parameter to the callback delegate.

Return Value

Type: TEvaluator
The evaluator.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when callback is .
See Also