23 implementations of ArgumentCount
System.Linq.Expressions (23)
System\Linq\Expressions\DynamicExpression.cs (6)
218int IArgumentProvider.ArgumentCount 507int IArgumentProvider.ArgumentCount => _arguments.Count; 551int IArgumentProvider.ArgumentCount => 1; 611int IArgumentProvider.ArgumentCount => 2; 682int IArgumentProvider.ArgumentCount => 3; 759int IArgumentProvider.ArgumentCount => 4;
System\Linq\Expressions\ElementInit.cs (1)
42public int ArgumentCount => Arguments.Count;
System\Linq\Expressions\IndexExpression.cs (1)
110public int ArgumentCount => _arguments.Count;
System\Linq\Expressions\InvocationExpression.cs (1)
90public virtual int ArgumentCount
System\Linq\Expressions\MethodCallExpression.cs (13)
142public virtual int ArgumentCount 179public override int ArgumentCount => _arguments.Count; 210public override int ArgumentCount => _arguments.Count; 241public override int ArgumentCount => 0; 277public override int ArgumentCount => 1; 334public override int ArgumentCount => 2; 401public override int ArgumentCount => 3; 474public override int ArgumentCount => 4; 553public override int ArgumentCount => 5; 621public override int ArgumentCount => 0; 659public override int ArgumentCount => 1; 715public override int ArgumentCount => 2; 782public override int ArgumentCount => 3;
System\Linq\Expressions\NewExpression.cs (1)
61public int ArgumentCount => _arguments.Count;
10 references to ArgumentCount
System.Linq.Expressions (10)
System\Dynamic\Utils\ExpressionVisitorUtils.cs (1)
63for (int i = 0, n = nodes.ArgumentCount; i < n; i++)
System\Dynamic\Utils\ListArgumentProvider.cs (1)
166protected override int ElementCount => _provider.ArgumentCount;
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (2)
421int count = args.ArgumentCount; 516Debug.Assert(args.ArgumentCount + skipParameters == pis.Length);
System\Linq\Expressions\Compiler\StackSpiller.ChildRewriter.cs (1)
168for (int i = 0, count = expressions.ArgumentCount; i < count; i++)
System\Linq\Expressions\Compiler\StackSpiller.cs (1)
169var cr = new ChildRewriter(this, Stack.NonEmpty, node.ArgumentCount);
System\Linq\Expressions\DynamicExpression.cs (1)
516Debug.Assert(args.Length == ((IArgumentProvider)this).ArgumentCount);
System\Linq\Expressions\Interpreter\LightCompiler.cs (3)
2154Debug.Assert(parameters.Length == arguments.ArgumentCount); 2156for (int i = 0, n = arguments.ArgumentCount; i < n; i++) 2364int count = arguments.ArgumentCount;