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