ComparisonEvaluator Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the ComparisonEvaluator class.
public ComparisonEvaluator (string type, Func<System.Collections.Generic.IReadOnlyList<object>,bool> function, AdaptiveExpressions.ValidateExpressionDelegate validator, AdaptiveExpressions.FunctionUtils.VerifyExpression verify = default);
new AdaptiveExpressions.BuiltinFunctions.ComparisonEvaluator : string * Func<System.Collections.Generic.IReadOnlyList<obj>, bool> * AdaptiveExpressions.ValidateExpressionDelegate * AdaptiveExpressions.FunctionUtils.VerifyExpression -> AdaptiveExpressions.BuiltinFunctions.ComparisonEvaluator
Public Sub New (type As String, function As Func(Of IReadOnlyList(Of Object), Boolean), validator As ValidateExpressionDelegate, Optional verify As FunctionUtils.VerifyExpression = Nothing)
Parameters
- type
- String
Name of the built-in function.
- function
- Func<IReadOnlyList<Object>,Boolean>
The comparison function, it takes a list of objects and returns a boolean.
- validator
- ValidateExpressionDelegate
Validator of input arguments.
Optional function to verify each child's result.