FunctionUtils.ValidateOrder(Expression, ReturnType[], ReturnType[]) 方法

定义

验证函数的参数数量和类型。

public static void ValidateOrder (AdaptiveExpressions.Expression expression, AdaptiveExpressions.ReturnType[] optional, params AdaptiveExpressions.ReturnType[] types);
static member ValidateOrder : AdaptiveExpressions.Expression * AdaptiveExpressions.ReturnType[] * AdaptiveExpressions.ReturnType[] -> unit
Public Shared Sub ValidateOrder (expression As Expression, optional As ReturnType(), ParamArray types As ReturnType())

参数

expression
Expression

要验证的表达式。

optional
ReturnType[]

按顺序选择可选类型。

types
ReturnType[]

按顺序排列的预期类型。

适用于