35 references to Invoke
System.Linq.Expressions (35)
System\Dynamic\Utils\ExpressionUtils.cs (3)
102Debug.Assert(nodeKind == ExpressionType.Invoke || nodeKind == ExpressionType.Call || nodeKind == ExpressionType.Dynamic || nodeKind == ExpressionType.New); 143case ExpressionType.Invoke: 173case ExpressionType.Invoke:
System\Linq\Expressions\Compiler\LambdaCompiler.Generated.cs (1)
104case ExpressionType.Invoke:
System\Linq\Expressions\Compiler\StackSpiller.Generated.cs (1)
90case ExpressionType.Invoke:
System\Linq\Expressions\Interpreter\LightCompiler.cs (1)
3073case ExpressionType.Invoke: CompileInvocationExpression(expr); break;
System\Linq\Expressions\InvocationExpression.cs (29)
36public sealed override ExpressionType NodeType => ExpressionType.Invoke; 426ParameterInfo[] pis = GetParametersForValidation(method, ExpressionType.Invoke); 428ValidateArgumentCount(method, ExpressionType.Invoke, 0, pis); 462ParameterInfo[] pis = GetParametersForValidation(method, ExpressionType.Invoke); 464ValidateArgumentCount(method, ExpressionType.Invoke, 1, pis); 466arg0 = ValidateOneArgument(method, ExpressionType.Invoke, arg0, pis[0], nameof(expression), nameof(arg0)); 502ParameterInfo[] pis = GetParametersForValidation(method, ExpressionType.Invoke); 504ValidateArgumentCount(method, ExpressionType.Invoke, 2, pis); 506arg0 = ValidateOneArgument(method, ExpressionType.Invoke, arg0, pis[0], nameof(expression), nameof(arg0)); 507arg1 = ValidateOneArgument(method, ExpressionType.Invoke, arg1, pis[1], nameof(expression), nameof(arg1)); 547ParameterInfo[] pis = GetParametersForValidation(method, ExpressionType.Invoke); 549ValidateArgumentCount(method, ExpressionType.Invoke, 3, pis); 551arg0 = ValidateOneArgument(method, ExpressionType.Invoke, arg0, pis[0], nameof(expression), nameof(arg0)); 552arg1 = ValidateOneArgument(method, ExpressionType.Invoke, arg1, pis[1], nameof(expression), nameof(arg1)); 553arg2 = ValidateOneArgument(method, ExpressionType.Invoke, arg2, pis[2], nameof(expression), nameof(arg2)); 596ParameterInfo[] pis = GetParametersForValidation(method, ExpressionType.Invoke); 598ValidateArgumentCount(method, ExpressionType.Invoke, 4, pis); 600arg0 = ValidateOneArgument(method, ExpressionType.Invoke, arg0, pis[0], nameof(expression), nameof(arg0)); 601arg1 = ValidateOneArgument(method, ExpressionType.Invoke, arg1, pis[1], nameof(expression), nameof(arg1)); 602arg2 = ValidateOneArgument(method, ExpressionType.Invoke, arg2, pis[2], nameof(expression), nameof(arg2)); 603arg3 = ValidateOneArgument(method, ExpressionType.Invoke, arg3, pis[3], nameof(expression), nameof(arg3)); 649ParameterInfo[] pis = GetParametersForValidation(method, ExpressionType.Invoke); 651ValidateArgumentCount(method, ExpressionType.Invoke, 5, pis); 653arg0 = ValidateOneArgument(method, ExpressionType.Invoke, arg0, pis[0], nameof(expression), nameof(arg0)); 654arg1 = ValidateOneArgument(method, ExpressionType.Invoke, arg1, pis[1], nameof(expression), nameof(arg1)); 655arg2 = ValidateOneArgument(method, ExpressionType.Invoke, arg2, pis[2], nameof(expression), nameof(arg2)); 656arg3 = ValidateOneArgument(method, ExpressionType.Invoke, arg3, pis[3], nameof(expression), nameof(arg3)); 657arg4 = ValidateOneArgument(method, ExpressionType.Invoke, arg4, pis[4], nameof(expression), nameof(arg4)); 735ValidateArgumentTypes(mi, ExpressionType.Invoke, ref args, nameof(expression));