ExpressionEvaluator 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 ExpressionEvaluator class.
public ExpressionEvaluator (string type, AdaptiveExpressions.EvaluateExpressionDelegate evaluator, AdaptiveExpressions.ReturnType returnType = AdaptiveExpressions.ReturnType.Object, AdaptiveExpressions.ValidateExpressionDelegate validator = default);
new AdaptiveExpressions.ExpressionEvaluator : string * AdaptiveExpressions.EvaluateExpressionDelegate * AdaptiveExpressions.ReturnType * AdaptiveExpressions.ValidateExpressionDelegate -> AdaptiveExpressions.ExpressionEvaluator
Public Sub New (type As String, evaluator As EvaluateExpressionDelegate, Optional returnType As ReturnType = AdaptiveExpressions.ReturnType.Object, Optional validator As ValidateExpressionDelegate = Nothing)
Parameters
- type
- String
Expression type.
- evaluator
- EvaluateExpressionDelegate
Delegate to evaluate an expression.
- returnType
- ReturnType
Type expected from evaluation.
- validator
- ValidateExpressionDelegate
Static validation of expression.