FunctionUtils.ValidateArityAndAnyType Method
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.
Validate that expression has a certain number of children that are of any of the supported types.
public static void ValidateArityAndAnyType (AdaptiveExpressions.Expression expression, int minArity, int maxArity, AdaptiveExpressions.ReturnType returnType = AdaptiveExpressions.ReturnType.Object);
static member ValidateArityAndAnyType : AdaptiveExpressions.Expression * int * int * AdaptiveExpressions.ReturnType -> unit
Public Shared Sub ValidateArityAndAnyType (expression As Expression, minArity As Integer, maxArity As Integer, Optional returnType As ReturnType = AdaptiveExpressions.ReturnType.Object)
Parameters
- expression
- Expression
Expression to validate.
- minArity
- Int32
Minimum number of children.
- maxArity
- Int32
Maximum number of children.
- returnType
- ReturnType
Allowed return types for children.
Remarks
If a child has a return type of Object then validation will happen at runtime.