190 references to Parameters
System.Activities (19)
Microsoft\VisualBasic\Activities\VisualBasicDesignerHelper.cs (2)
457for (int i = 0; i < lambda.Parameters.Count; i++) 459FindTypeReferences(lambda.Parameters[i], typeReferences);
Microsoft\VisualBasic\Activities\VisualBasicHelper.cs (4)
328return Expression.Lambda(rawTree.Type, finalBody, rawTree.Parameters); 404return Expression.Lambda(lambda.Type, finalBody, lambda.Parameters); 784expr1 = Rewrite(lambda.Body, lambda.Parameters, isLocationExpression, out abort); 789return Expression.Lambda(lambda.Type, expr1, lambda.Parameters);
System\Activities\ExpressionUtilities.cs (13)
201return new LocationReferenceFactory<T>(callExpression.Arguments[0], expression.Parameters); 210return new ArgumentFactory<T>(callExpression.Object, expression.Parameters); 283this.arrayFunction = ExpressionUtilities.Compile<T[]>(arrayIndexExpression.Left, expression.Parameters); 284this.indexFunction = ExpressionUtilities.Compile<int>(arrayIndexExpression.Right, expression.Parameters); 355Expression.Convert(memberExpression.Expression, TypeHelper.ObjectType), expression.Parameters); 361parentFactory = CreateParentReference(memberExpression.Expression, expression.Parameters); 521this.targetObjectFunction = ExpressionUtilities.Compile<object>(callExpression.Object, expression.Parameters); 532this.setItemArgumentFunctions[i] = ExpressionUtilities.Compile<object>(argument, expression.Parameters); 666callExpression.Object, expression.Parameters); 672callExpression.Arguments[i], expression.Parameters); 751Expression.Convert(memberExpression.Expression, TypeHelper.ObjectType), expression.Parameters); 757parentFactory = CreateParentReference(memberExpression.Expression, expression.Parameters); 984lambda.Parameters);
System.Core (23)
Microsoft\Scripting\Ast\BinaryExpression.cs (2)
1345Debug.Assert(pms.Length == conversion.Parameters.Count); 1479Debug.Assert(pms.Length == conversion.Parameters.Count);
Microsoft\Scripting\Ast\DebugViewWriter.cs (1)
1134VisitDeclarations(lambda.Parameters);
Microsoft\Scripting\Ast\Expression.DebuggerProxy.cs (1)
233public ReadOnlyCollection<ParameterExpression> Parameters { get { return _node.Parameters; } }
Microsoft\Scripting\Ast\ExpressionStringBuilder.cs (3)
348if (node.Parameters.Count == 1) { 350Visit(node.Parameters[0]); 353VisitExpressions('(', node.Parameters, ')');
Microsoft\Scripting\Ast\ExpressionVisitor.cs (1)
368return node.Update(Visit(node.Body), VisitAndConvert(node.Parameters, "VisitLambda"));
Microsoft\Scripting\Ast\LambdaExpression.cs (2)
224/// <param name="parameters">The <see cref="LambdaExpression.Parameters">Parameters</see> property of the result.</param> 227if (body == Body && parameters == Parameters) {
Microsoft\Scripting\Compiler\CompilerScope.cs (1)
447return lambda.Parameters;
Microsoft\Scripting\Compiler\ExpressionQuoter.cs (2)
78_shadowedVars.Push(new Set<ParameterExpression>(node.Parameters)); 84return Expression.Lambda<T>(b, node.Name, node.TailCall, node.Parameters);
Microsoft\Scripting\Compiler\LambdaCompiler.cs (2)
131var paramNames = lambda.Parameters.Map(p => p.Name); 185get { return _lambda.Parameters; }
Microsoft\Scripting\Compiler\LambdaCompiler.Lambda.cs (3)
142return lambda.Parameters.Map(p => p.IsByRef ? p.Type.MakeByRefType() : p.Type); 173for (int i = _lambda.Parameters.Count - 1; i >= 0; i--) { 174_scope.EmitSet(_lambda.Parameters[i]);
Microsoft\Scripting\Compiler\LambdaCompiler.Logical.cs (3)
124Debug.Assert(b.Conversion.Parameters.Count == 1); 125ParameterExpression p = b.Conversion.Parameters[0]; 177Debug.Assert(b.Conversion.Parameters.Count == 1);
Microsoft\Scripting\Compiler\StackSpiller.cs (1)
124return new Expression<T>(newBody, lambda.Name, lambda.TailCall, lambda.Parameters);
System\Linq\Expressions\ExpressionVisitor.cs (1)
265return Expression.Lambda(lambda.Type, body, lambda.Parameters);
System.Data.Entity (19)
System\Data\Objects\ELinq\CompiledELinqQueryState.cs (4)
218Funcletizer funcletizer = Funcletizer.CreateCompiledQueryEvaluationFuncletizer(this.ObjectContext, lambda.Parameters.First(), lambda.Parameters.Skip(1).ToList().AsReadOnly()); 239.Parameters 243parameterLookup.Add(query.Parameters.First(), objectContext);
System\Data\Objects\ELinq\EntityExpressionVisitor.cs (1)
311return Expression.Lambda(lambda.Type, body, lambda.Parameters);
System\Data\Objects\ELinq\ExpressionConverter.cs (1)
817Binding scopeBinding = new Binding(lambda.Parameters[0], input);
System\Data\Objects\ELinq\LinqExpressionNormalizer.cs (1)
414normalized = Expression.Lambda(lambda.Type, Expression.Convert(coalesce.Left, typeof(bool)), lambda.Parameters);
System\Data\Objects\ELinq\MethodCallTranslator.cs (12)
287if (selectorLambda.Parameters.Count != 2 || 300if (newExpression.Arguments[0] != selectorLambda.Parameters[0] || 301newExpression.Arguments[1] != selectorLambda.Parameters[1]) 1641parent._bindingContext.PushBindingScope(new Binding(selectorLambda.Parameters[0], joinOuter)); 1642parent._bindingContext.PushBindingScope(new Binding(selectorLambda.Parameters[1], joinInner)); 2568parent._bindingContext.PushBindingScope(new Binding(resultSelector.Parameters[0], projectLeft)); 2569parent._bindingContext.PushBindingScope(new Binding(resultSelector.Parameters[1], projectRight)); 2825parent._bindingContext.PushBindingScope(new Binding(resultSelectorLinqExpression.Parameters[0], keyExpression)); 2826parent._bindingContext.PushBindingScope(new Binding(resultSelectorLinqExpression.Parameters[1], groupExpression)); 2899parent._bindingContext.PushBindingScope(new Binding(linqSelector.Parameters[0], outerProperty)); 2900parent._bindingContext.PushBindingScope(new Binding(linqSelector.Parameters[1], innerProperty)); 3027ParameterExpression parameter = lambdaExpression.Parameters[0];
System.Data.Linq (78)
DataServices.cs (1)
522if (predicate.Parameters.Count != 1)
DataShape.cs (1)
69LambdaExpression lambda = Expression.Lambda(op, expression.Parameters.ToArray());
SqlClient\Query\Funcletizer.cs (2)
76foreach (var p in lambda.Parameters) { 387return Expression.Lambda(lambda.Type, body, lambda.Parameters);
SqlClient\Query\QueryConverter.cs (68)
330this.exprMap[lambda.Parameters[i]] = invoke.Arguments[i]; 368for (int i = 0, n = lambda.Parameters.Count; i < n; i++) { 369ParameterExpression p = lambda.Parameters[i]; 417this.map[selector.Parameters[0]] = aref; 464this.map[colSelector.Parameters[0]] = seqRef; 474this.map[resultSelector.Parameters[0]] = seqRef; 475this.map[resultSelector.Parameters[1]] = selRef; 491this.map[outerKeySelector.Parameters[0]] = outerRef; 494this.map[innerKeySelector.Parameters[0]] = innerRef; 497this.map[resultSelector.Parameters[0]] = outerRef; 498this.map[resultSelector.Parameters[1]] = innerRef; 523this.map[outerKeySelector.Parameters[0]] = outerRef; 526this.map[innerKeySelector.Parameters[0]] = innerRef; 536this.map[resultSelector.Parameters[0]] = outerRef; 537this.dupMap[resultSelector.Parameters[1]] = subquery; 630this.map[predicate.Parameters[0]] = (SqlAliasRef)select.Selection; 675cpArray.Accessor.Parameters.ToArray() 714Expression.Lambda(Expression.Convert(cp.Accessor.Body, type), cp.Accessor.Parameters.ToArray()), 1500this.map[expression.Parameters[0]] = (SqlAliasRef)select.Selection; 1518this.map[expression.Parameters[0]] = (SqlAliasRef)select.Selection; 1539this.map[keyLambda.Parameters[0]] = seqAliasRef; 1549this.map[keyLambda.Parameters[0]] = selDupRef; 1556this.map[elemLambda.Parameters[0]] = selDupRef; 1560this.map[elemLambda.Parameters[0]] = seqAliasRef; 1598this.map[resultSelector.Parameters[0]] = sql.Member(kgAliasRef, elementType.GetProperty("Key")); 1599this.map[resultSelector.Parameters[1]] = kgAliasRef; 1645if (!outerNode && !isCount && (lambda == null || (lambda.Parameters.Count == 1 && lambda.Parameters[0] == lambda.Body)) && 1649lambda = Expression.Lambda(selectionLambda.Type, selectionLambda.Body, selectionLambda.Parameters); 1666this.map[lambda.Parameters[0]] = aref; 1706this.map[lambda.Parameters[0]] = (SqlExpression)SqlDuplicator.Copy(info.ElementOnGroupSource); 1822this.map[lambda.Parameters[0]] = aref; 2039this.IsLambda(mc.Arguments[1]) && this.GetLambda(mc.Arguments[1]).Parameters.Count == 1) { 2046this.IsLambda(mc.Arguments[1]) && this.GetLambda(mc.Arguments[1]).Parameters.Count == 1) { 2050this.IsLambda(mc.Arguments[1]) && this.GetLambda(mc.Arguments[1]).Parameters.Count == 1 && 2051this.IsLambda(mc.Arguments[2]) && this.GetLambda(mc.Arguments[2]).Parameters.Count == 2) { 2058this.IsLambda(mc.Arguments[2]) && this.GetLambda(mc.Arguments[2]).Parameters.Count == 1 && 2059this.IsLambda(mc.Arguments[3]) && this.GetLambda(mc.Arguments[3]).Parameters.Count == 1 && 2060this.IsLambda(mc.Arguments[4]) && this.GetLambda(mc.Arguments[4]).Parameters.Count == 2) { 2067this.IsLambda(mc.Arguments[2]) && this.GetLambda(mc.Arguments[2]).Parameters.Count == 1 && 2068this.IsLambda(mc.Arguments[3]) && this.GetLambda(mc.Arguments[3]).Parameters.Count == 1 && 2069this.IsLambda(mc.Arguments[4]) && this.GetLambda(mc.Arguments[4]).Parameters.Count == 2) { 2096this.IsLambda(mc.Arguments[1]) && this.GetLambda(mc.Arguments[1]).Parameters.Count == 1) { 2107this.IsLambda(mc.Arguments[1]) && this.GetLambda(mc.Arguments[1]).Parameters.Count == 1) { 2118this.IsLambda(mc.Arguments[1]) && this.GetLambda(mc.Arguments[1]).Parameters.Count == 1) { 2158this.IsLambda(mc.Arguments[1]) && this.GetLambda(mc.Arguments[1]).Parameters.Count == 1) { 2165this.IsLambda(mc.Arguments[1]) && this.GetLambda(mc.Arguments[1]).Parameters.Count == 1) { 2175this.IsLambda(mc.Arguments[1]) && this.GetLambda(mc.Arguments[1]).Parameters.Count == 1) { 2185this.IsLambda(mc.Arguments[1]) && this.GetLambda(mc.Arguments[1]).Parameters.Count == 1) { 2195this.IsLambda(mc.Arguments[1]) && this.GetLambda(mc.Arguments[1]).Parameters.Count == 1) { 2205this.IsLambda(mc.Arguments[1]) && this.GetLambda(mc.Arguments[1]).Parameters.Count == 1) { 2215this.IsLambda(mc.Arguments[1]) && this.GetLambda(mc.Arguments[1]).Parameters.Count == 1) { 2225this.IsLambda(mc.Arguments[1]) && this.GetLambda(mc.Arguments[1]).Parameters.Count == 1) { 2232this.IsLambda(mc.Arguments[1]) && this.GetLambda(mc.Arguments[1]).Parameters.Count == 1) { 2236this.IsLambda(mc.Arguments[1]) && this.GetLambda(mc.Arguments[1]).Parameters.Count == 1 && 2237this.IsLambda(mc.Arguments[2]) && this.GetLambda(mc.Arguments[2]).Parameters.Count == 1) { 2241this.IsLambda(mc.Arguments[1]) && this.GetLambda(mc.Arguments[1]).Parameters.Count == 1 && 2242this.IsLambda(mc.Arguments[2]) && this.GetLambda(mc.Arguments[2]).Parameters.Count == 2) { 2246this.IsLambda(mc.Arguments[1]) && this.GetLambda(mc.Arguments[1]).Parameters.Count == 1 && 2247this.IsLambda(mc.Arguments[2]) && this.GetLambda(mc.Arguments[2]).Parameters.Count == 1 && 2248this.IsLambda(mc.Arguments[3]) && this.GetLambda(mc.Arguments[3]).Parameters.Count == 2) { 2255this.IsLambda(mc.Arguments[1]) && this.GetLambda(mc.Arguments[1]).Parameters.Count == 1) { 2262this.IsLambda(mc.Arguments[1]) && this.GetLambda(mc.Arguments[1]).Parameters.Count == 1) { 2269this.IsLambda(mc.Arguments[1]) && this.GetLambda(mc.Arguments[1]).Parameters.Count == 1) { 2276this.IsLambda(mc.Arguments[1]) && this.GetLambda(mc.Arguments[1]).Parameters.Count == 1) { 2374this.map[lambda.Parameters[0]] = (SqlAliasRef)select.Selection; 2445System.Diagnostics.Debug.Assert(resultSelector.Parameters.Count == 1); 2446this.map.Add(resultSelector.Parameters[0], tableAliasRef);
SqlClient\Query\SqlBinder.cs (1)
941cp.Accessor.Parameters
SqlClient\Query\SqlMethodCallConverter.cs (4)
1521cp.Accessor.Parameters[0] 1555cp.Accessor.Parameters[0] 1589cp.Accessor.Parameters[0] 2488cp.Accessor.Parameters[0]
SqlClient\Query\Translator.cs (1)
157RelationComposer rc = new RelationComposer(subquery.Parameters[0], association, otherSource, thisInstance);
System.Data.Services (19)
parent\Client\System\Data\Services\Client\ALinq\ALinqExpressionVisitor.cs (1)
503return Expression.Lambda(lambda.Type, body, lambda.Parameters);
System\Data\Services\DataServiceConfiguration.cs (2)
509ParameterExpression parameter = filter.Parameters[0]; 512((LambdaExpression)predicate).Parameters[0], // oldParameter
System\Data\Services\ExpandSegment.cs (2)
208if (lambda.Parameters.Count != 1) 211Strings.ExpandSegment_FilterBodyShouldTakeOneParameter(lambda.Parameters.Count), "filter");
System\Data\Services\Parsing\RequestQueryParser.cs (1)
285((LambdaExpression)v.Order.Expression).Parameters[0],
System\Data\Services\Providers\BasicExpandProvider.cs (5)
236orderer = Expression.Lambda(ParameterReplacerVisitor.Replace(e.Body, e.Parameters[0], replaceExpression), parameter); 277ParameterReplacerVisitor.Replace(e.Body, e.Parameters[0], parameter), 969ExpandNodeAnnotationVisitor.AnnotateExpression(lambda.Body, lambda.Parameters[0], this); 1515Expression orderExpression = ParameterReplacerVisitor.Replace(orderLamba.Body, orderLamba.Parameters[0], source); 1751orderLambda.Parameters[0],
System\Data\Services\RequestQueryProcessor.cs (3)
225filterLambda.Parameters[0], 1247Expression source = ParameterReplacerVisitor.Replace(sourceLambda.Body, sourceLambda.Parameters[0], expandParameter); 1272oldExpression.Parameters[0],
System\Data\Services\RequestUriProcessor.cs (5)
1030if (predicate.Parameters[0].Type != typeof(TSource) && 1031predicate.Parameters[0].Type.IsAssignableFrom(typeof(TSource))) 1046Debug.Assert(input.Parameters.Count == 1, "Assuming a single parameter for input lambda expression in this function."); 1048ParameterExpression p = Expression.Parameter(targetType, input.Parameters[0].Name); 1051ParameterReplacerVisitor.Replace(input.Body, input.Parameters[0], p),
System.Data.Services.Client (32)
System\Data\Services\Client\ALinq\ALinqExpressionVisitor.cs (1)
503return Expression.Lambda(lambda.Type, body, lambda.Parameters);
System\Data\Services\Client\ALinq\DataServiceQueryProvider.cs (1)
160Type lastSegmentType = re.Projection == null ? re.ResourceType : re.Projection.Selector.Parameters[0].Type;
System\Data\Services\Client\ALinq\ExpressionNormalizer.cs (1)
494normalized = Expression.Lambda(lambda.Type, Expression.Convert(coalesce.Left, typeof(bool)), lambda.Parameters);
System\Data\Services\Client\ALinq\ProjectionAnalyzer.cs (1)
83pb.PushParamExpression(e.Parameters.Last());
System\Data\Services\Client\ALinq\ProjectionRewriter.cs (3)
48ClientType.CheckElementTypeIsEntity(le.Parameters[0].Type) || // only attempt to rewrite if lambda parameter is not an entity type 49!(le.Parameters[0].Type.GetProperties().Any(p => p.PropertyType == proposedParameterType))) // lambda parameter must have public property that is same as proposed type. 65this.oldLambdaParameter = lambda.Parameters[0];
System\Data\Services\Client\ALinq\ResourceBinder.cs (18)
163Expression reboundPredicate = InputBinder.Bind(e, input, le.Parameters[0], referencedInputs); 507if (ExpressionPresenceVisitor.IsExpressionPresent(resultLambda.Parameters[0], resultLambda.Body)) 517Expression collectorReference = InputBinder.Bind(collectionLambda.Body, source, collectionLambda.Parameters[0], referencedExpressions); 538resultLambda = Expression.Lambda(resultLambda.Body, new ParameterExpression[] { resultLambda.Parameters[1] }); 670Expression navPropRef = InputBinder.Bind(collectorSelector.Body, input, collectorSelector.Parameters[0], referencedInputs); 732selector = Expression.Lambda(selector.Body, new ParameterExpression[] { selector.Parameters[1] }); 1065bound = InputBinder.Bind(le.Body, input, le.Parameters[0], referencedInputs); 1376if (lambda == null || lambda.Parameters.Count != 1) 1381ParameterExpression parameter = lambda.Parameters[0]; 1608ParameterExpression parameter = lambda.Parameters[0]; 1633if (selector.Parameters.Count != 1) 1645ParameterExpression expectedTarget = selector.Parameters[0]; 1662return (le.Body == le.Parameters[1]); 1741ParameterExpression collectorSourceParameter = resultSelector.Parameters[0]; 1742ParameterExpression introducedRangeParameter = resultSelector.Parameters[1]; 1751if (!ExpressionIsSimpleAccess(argument, resultSelector.Parameters)) 1791Expression boundArgument = InputBinder.Bind(argument, inputSourceSet, resultSelector.Parameters[0], referencedInputs); 2185if (le != null && le.Parameters.Count == parameterCount)
System\Data\Services\Client\ProjectionPathBuilder.cs (2)
140Debug.Assert(lambda.Parameters.Count == 1, "lambda.Parameters.Count == 1"); 142ParameterExpression param = lambda.Parameters[0];
System\Data\Services\Client\ProjectionPlanCompiler.cs (5)
79Debug.Assert(projection.Parameters.Count == 1, "projection.Parameters.Count == 1"); 347if (!this.topLevelProjectionFound || lambda.Parameters.Count == 1 && ClientType.CheckElementTypeIsEntity(lambda.Parameters[0].Type)) 356ProjectionPath parameterPath = new ProjectionPath(lambda.Parameters[0], expectedTypeParameter, entryParameter); 359this.annotations[lambda.Parameters[0]] = new ExpressionAnnotation() { Segment = parameterSegment };