Microsoft\Scripting\Compiler\StackSpiller.cs (27)
182ChildRewriter cr = new ChildRewriter(this, stack, 2 + index.Arguments.Count);
386ChildRewriter cr = new ChildRewriter(this, stack, node.Arguments.Count + 1);
412ChildRewriter cr = new ChildRewriter(this, stack, node.Arguments.Count + 1);
442ChildRewriter cr = new ChildRewriter(this, stack, node.Expressions.Count);
467cr = new ChildRewriter(this, stack, node.Arguments.Count);
486cr = new ChildRewriter(this, stack, node.Arguments.Count + 1);
507ChildRewriter cr = new ChildRewriter(this, stack, node.Arguments.Count);
586ChildRewriter[] cloneCrs = new ChildRewriter[inits.Count];
588for (int i = 0; i < inits.Count; i++) {
592ChildRewriter cr = new ChildRewriter(this, Stack.NonEmpty, init.Arguments.Count);
603ElementInit[] newInits = new ElementInit[inits.Count];
604for (int i = 0; i < inits.Count; i++) {
618Expression[] comma = new Expression[inits.Count + 2];
621for (int i = 0; i < inits.Count; i++) {
626comma[inits.Count + 1] = tempNew;
646BindingRewriter[] bindingRewriters = new BindingRewriter[bindings.Count];
647for (int i = 0; i < bindings.Count; i++) {
659MemberBinding[] newBindings = new MemberBinding[bindings.Count];
660for (int i = 0; i < bindings.Count; i++) {
669Expression[] comma = new Expression[bindings.Count + 2];
671for (int i = 0; i < bindings.Count; i++) {
676comma[bindings.Count + 1] = tempNew;
787for (int i = 0; i < cases.Count; i++) {
792for (int j = 0; j < testValues.Count; j++) {
855for (int i = 0; i < handlers.Count; i++) {
927Debug.Assert(max < original.Count);
929T[] clone = new T[original.Count];
System\Data\EntityKey.cs (11)
723if (((EntitySetBase)entitySet).ElementType.KeyMembers.Count != numKeyMembers)
942int numExpectedKeyValues = ((EntitySetBase)entitySet).ElementType.KeyMembers.Count;
1009if (keyMembers.Count != 1)
1013throw EntityUtil.IncorrectNumberOfKeyValuePairs(argumentName, entitySet.ElementType.FullName, keyMembers.Count, 1);
1017throw EntityUtil.IncorrectNumberOfKeyValuePairsInvalidOperation(entitySet.ElementType.FullName, keyMembers.Count, 1);
1040if (keyMembers.Count != _compositeKeyValues.Length)
1044throw EntityUtil.IncorrectNumberOfKeyValuePairs(argumentName, entitySet.ElementType.FullName, keyMembers.Count, _compositeKeyValues.Length);
1048throw EntityUtil.IncorrectNumberOfKeyValuePairsInvalidOperation(entitySet.ElementType.FullName, keyMembers.Count, _compositeKeyValues.Length);
1164Debug.Assert(entitySet.ElementType.KeyMembers.Count == 1, "For a singleton key, the number of key fields must be exactly 1.");
1172Debug.Assert(entitySet.ElementType.KeyMembers.Count > 1, "For a composite key, the number of key fields should be greater than 1.");
1173Debug.Assert(entitySet.ElementType.KeyMembers.Count == _compositeKeyValues.Length, "Incorrect number of values specified to composite key.");
System\Data\Objects\ELinq\MethodCallTranslator.cs (33)
287if (selectorLambda.Parameters.Count != 2 ||
295if (newExpression.Arguments.Count != 2)
434Debug.Assert(call.Object != null && call.Arguments.Count == 1 && call.Arguments[0] != null && call.Arguments[0].Type.Equals(typeof(string)), "Invalid Include arguments?");
470Debug.Assert(call.Object != null && call.Arguments.Count == 1 && call.Arguments[0] != null && call.Arguments[0].Type.Equals(typeof(MergeOption)), "Invalid MergeAs arguments?");
506Debug.Assert(call.Object != null && call.Arguments.Count == 1 && call.Arguments[0] != null && call.Arguments[0].Type.Equals(typeof(Span)), "Invalid IncludeSpan arguments?");
864List<LinqExpression> arguments = new List<LinqExpression>(call.Arguments.Count + 1);
1017Debug.Assert(call.Arguments.Count == 1, "Expecting 1 argument for String.IndexOf");
1106Debug.Assert(call.Arguments.Count == 1 || call.Arguments.Count == 2, "Expecting 1 or 2 arguments for String.Substring");
1114if (call.Arguments.Count == 1)
1145Debug.Assert(call.Arguments.Count == 1 || call.Arguments.Count == 2, "Expecting 1 or 2 arguments for String.Remove");
1158if (call.Arguments.Count == 2)
1224Debug.Assert(call.Arguments.Count == 2, "Expecting 2 arguments for String.Insert");
1267Debug.Assert(call.Arguments.Count == 1, "Expecting 1 argument for String.IsNullOrEmpty");
1300Debug.Assert(call.Arguments.Count >= 2 && call.Arguments.Count <= 4, "Expecting between 2 and 4 arguments for String.Concat");
1303for (int argIndex = 1; argIndex < call.Arguments.Count; argIndex++)
1340if (newArray.Expressions.Count == 0)
1349if (newArray.Expressions.Count == 1 &&
1499Debug.Assert(call.Arguments.Count == 4, "Expecting 4 arguments for Microsoft.VisualBasic.DateAndTime.DatePart");
1542Debug.Assert(call.Arguments.Count == 2, "Skip and Take must have 2 arguments");
1574Debug.Assert(5 == call.Arguments.Count);
1672Debug.Assert(1 == call.Arguments.Count);
1680Debug.Assert(2 == call.Arguments.Count);
1747bool isUnary = 1 == call.Arguments.Count;
1748Debug.Assert(isUnary || 2 == call.Arguments.Count);
2026Debug.Assert(0 <= call.Arguments.Count);
2033Debug.Assert(1 <= call.Arguments.Count);
2115Debug.Assert(2 <= call.Arguments.Count);
2180DbExpression defaultValue = call.Arguments.Count == 2 ?
2493LambdaExpression resultSelector = (call.Arguments.Count == 3) ? parent.GetLambdaExpression(call, 2) : null;
3014Debug.Assert(2 == call.Arguments.Count);