System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (14)
329ArgumentValidation.CheckFunction(function);
348ArgumentValidation.RequireCompatibleType(exp, paramType, "argument");
580ArgumentValidation.CheckNamed(keyInfo, "keys", index);
605ArgumentValidation.CheckNamed(aggInfo, "aggregates", idx);
705if (ArgumentValidation.IsConstantNegativeInteger(count))
738if (!ArgumentValidation.TryGetPrimitiveTypeKind(value.GetType(), out primitiveTypeKind))
752ArgumentValidation.CheckType(constantType, "constantType");
784if (!ArgumentValidation.TryGetPrimitiveTypeKind(value.GetType(), out valueKind) ||
800ArgumentValidation.CheckType(type);
811ArgumentValidation.CheckEntitySet(entitySet, "targetSet");
812return ArgumentValidation.CreateCollectionResultType(entitySet.ElementType);
1396if (ArgumentValidation.IsConstantNegativeInteger(limit))
1497ArgumentValidation.RequireCompatibleType(exp, expectedParams[idx].TypeUsage, "arguments", idx);
1650resultType = ArgumentValidation.ValidateNew(resultType, attributeValues, out validArguments);