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)
Syntaxpublic TEvaluator CreateEvaluator<TEvaluator>(
EvaluatorGroup.Callback0<TEvaluator> callback
)
where TEvaluator : IEvaluator
Public Function CreateEvaluator(Of TEvaluator As IEvaluator) (
callback As EvaluatorGroup.Callback0(Of TEvaluator)
) As TEvaluator
public:
generic<typename TEvaluator>
where TEvaluator : IEvaluator
TEvaluator CreateEvaluator(
EvaluatorGroup.Callback0<TEvaluator>^ callback
)
member CreateEvaluator :
callback : EvaluatorGroup.Callback0<'TEvaluator> -> 'TEvaluator when '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:
TEvaluatorThe evaluator.
Exceptions
See Also