Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ValidateArgumentTypes()

static void System.Dynamic.Utils.ExpressionUtils.ValidateArgumentTypes ( MethodBase method,
ExpressionType nodeKind,
ref ReadOnlyCollection< Expression > arguments,
string methodParamName )
inlinestatic

Definition at line 50 of file ExpressionUtils.cs.

51 {
54 Expression[] array = null;
55 int i = 0;
56 for (int num = parametersForValidation.Length; i < num; i++)
57 {
61 if (array == null && arguments2 != arguments[i])
62 {
64 for (int j = 0; j < i; j++)
65 {
66 array[j] = arguments[j];
67 }
68 }
69 if (array != null)
70 {
72 }
73 }
74 if (array != null)
75 {
77 }
78 }
static void ValidateArgumentCount(MethodBase method, ExpressionType nodeKind, int count, ParameterInfo[] pis)
static ParameterInfo[] GetParametersForValidation(MethodBase method, ExpressionType nodeKind)
static Expression ValidateOneArgument(MethodBase method, ExpressionType nodeKind, Expression arguments, ParameterInfo pi, string methodParamName, string argumentParamName, int index=-1)

References System.array, System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Dynamic.Utils.ExpressionUtils.GetParametersForValidation(), System.Dynamic.Utils.ExpressionUtils.ValidateArgumentCount(), and System.Dynamic.Utils.ExpressionUtils.ValidateOneArgument().

Referenced by System.Linq.Expressions.ExpressionExtension.MakeDynamic(), and System.Linq.Expressions.Expression< TDelegate >.ValidateArgumentTypes().