Click or drag to resize

EvaluatorGroup.CreateEvaluator<TEvaluator> Method (EvaluatorGroup.Callback0<TEvaluator>)

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: 24.3.420.0 (24.3.420.0)
Syntax
public TEvaluator CreateEvaluator<TEvaluator>(
	EvaluatorGroup.Callback0<TEvaluator> callback
)
where TEvaluator : IEvaluator

Parameters

callback
Type: AGI.Foundation.EvaluatorGroup.Callback0<TEvaluator>
The callback delegate to use to create the evaluator if the evaluator does not already exist.

Type Parameters

TEvaluator
The type of evaluator to create.

Return Value

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