204 references to Body
System.Activities (28)
Microsoft\VisualBasic\Activities\VisualBasicDesignerHelper.cs (3)
183FindTypeReferences(lambda.Body, typeReferences); 315FindTypeReferences(lambda.Body, typeReferences); 456FindTypeReferences(lambda.Body, typeReferences);
Microsoft\VisualBasic\Activities\VisualBasicHelper.cs (6)
323finalBody = Rewrite(rawTree.Body, null, false, out abort); 401finalBody = Rewrite(lambda.Body, null, false, out abort); 461finalBody = Rewrite(rawTree.Body, null, isLocationReference, out abort); 571finalBody = Rewrite(lambda.Body, null, isLocationReference, out abort); 784expr1 = Rewrite(lambda.Body, lambda.Parameters, isLocationExpression, out abort); 1256return FindParameter(lambda.Body);
System\Activities\Expressions\ExpressionServices.cs (4)
36TryConvert<TResult>(expression.Body, true, out result); 49return TryConvert<TResult>(expression.Body, false, out result) == null; 157TryConvertReference<TResult>(expression.Body, true, out result); 170return TryConvertReference<TResult>(expression.Body, false, out result) == null;
System\Activities\ExpressionUtilities.cs (14)
73Expression body = expression.Body; 159Expression body = expression.Body; 280Fx.Assert(expression.Body.NodeType == ExpressionType.ArrayIndex, "ArrayIndex expression required"); 281BinaryExpression arrayIndexExpression = (BinaryExpression)expression.Body; 342Fx.Assert(expression.Body.NodeType == ExpressionType.MemberAccess, "field expression required"); 343MemberExpression memberExpression = (MemberExpression)expression.Body; 495Fx.Assert(expression.Body.NodeType == ExpressionType.Call, "Call expression required."); 497MethodCallExpression callExpression = (MethodCallExpression)expression.Body; 662Fx.Assert(expression.Body.NodeType == ExpressionType.Call, "Call expression required."); 663MethodCallExpression callExpression = (MethodCallExpression)expression.Body; 737Fx.Assert(expression.Body.NodeType == ExpressionType.MemberAccess, "member access expression required"); 738MemberExpression memberExpression = (MemberExpression)expression.Body; 977hasChanged |= TryRewriteLambdaExpression(lambda.Body, out other, publicAccessor, isLocationExpression); 1981originalLambdaExpression.Body,
System\Activities\XamlIntegration\CompiledDataContext.cs (1)
79lambdaExpression.Body,
System.Core (15)
Microsoft\Scripting\Ast\DebugViewWriter.cs (1)
1138Visit(lambda.Body);
Microsoft\Scripting\Ast\Expression.DebuggerProxy.cs (1)
228public Expression Body { get { return _node.Body; } }
Microsoft\Scripting\Ast\ExpressionStringBuilder.cs (1)
356Visit(node.Body);
Microsoft\Scripting\Ast\ExpressionVisitor.cs (1)
368return node.Update(Visit(node.Body), VisitAndConvert(node.Parameters, "VisitLambda"));
Microsoft\Scripting\Ast\LambdaExpression.cs (2)
223/// <param name="body">The <see cref="LambdaExpression.Body">Body</see> property of the result.</param> 227if (body == Body && parameters == Parameters) {
Microsoft\Scripting\Compiler\ExpressionQuoter.cs (2)
79Expression b = Visit(node.Body); 81if (b == node.Body) {
Microsoft\Scripting\Compiler\LambdaCompiler.ControlFlow.cs (1)
228var expression = lambda.Body;
Microsoft\Scripting\Compiler\LambdaCompiler.Lambda.cs (2)
181EmitExpressionAsVoid(_lambda.Body, flags); 183EmitExpression(_lambda.Body, flags);
Microsoft\Scripting\Compiler\StackSpiller.cs (1)
110Result body = RewriteExpressionFreeTemps(lambda.Body, _startingStack);
Microsoft\Scripting\Compiler\VariableBinder.cs (1)
146body = new ReadOnlyCollection<Expression>(new[] { lambda.Body });
System\Linq\Expressions\ExpressionVisitor.cs (2)
263Expression body = this.Visit(lambda.Body); 264if (body != lambda.Body) {
System.Data.Entity (25)
System\Data\Common\Internal\Materialization\CoordinatorScratchpad.cs (1)
271Expression body = Visit(lambda.Body);
System\Data\Objects\ELinq\CompiledELinqQueryState.cs (2)
220return new ExpressionConverter(funcletizer, lambda.Body); 245return replacer.Visit(query.Body);
System\Data\Objects\ELinq\EntityExpressionVisitor.cs (2)
308Expression body = this.Visit(lambda.Body); 309if (body != lambda.Body)
System\Data\Objects\ELinq\ExpressionConverter.cs (1)
827DbExpression result = TranslateExpression(lambda.Body);
System\Data\Objects\ELinq\LinqExpressionNormalizer.cs (3)
409if (lambda.Body.NodeType == ExpressionType.Coalesce && lambda.Body.Type == typeof(bool)) 411BinaryExpression coalesce = (BinaryExpression)lambda.Body;
System\Data\Objects\ELinq\MethodCallTranslator.cs (11)
288selectorLambda.Body.NodeType != ExpressionType.New) 293var newExpression = (NewExpression)selectorLambda.Body; 1612var joinCondition = parent.CreateEqualsExpression(outerKeySelector, innerKeySelector, EqualsPattern.PositiveNullEqualityNonComposable, outerLambda.Body.Type, innerLambda.Body.Type); 1645CqtExpression selector = parent.TranslateExpression(selectorLambda.Body); 2572resultProjection = parent.TranslateSet(resultSelector.Body); 2830resultSelectorLinqExpression.Body); 2880parent.CreateEqualsExpression(outerSelector, innerSelector, EqualsPattern.PositiveNullEqualityNonComposable, outerLambda.Body.Type, innerLambda.Body.Type)); 2903CqtExpression selectorProject = parent.TranslateExpression(linqSelector.Body); 3031CqtExpression lambda = parent.TranslateExpression(lambdaExpression.Body);
System\Data\Objects\ELinq\ReflectionUtil.cs (1)
392expression = ((LambdaExpression)expression).Body;
System\Data\Objects\ELinq\SpatialMethodCallTranslator.cs (2)
45MethodInfo method = ((MethodCallExpression)lambda.Body).Method; 54MethodInfo method = ((MethodCallExpression)lambda.Body).Method;
System\Data\Objects\ELinq\SpatialPropertyTranslator.cs (1)
44MemberExpression memberEx = (MemberExpression)lambda.Body;
System\Data\Objects\ObjectContext.cs (1)
845var body = selector.Body;
System.Data.Linq (63)
ChangeDirector.cs (3)
239return Expression.Call(typeof(DataManipulation), "Insert", new Type[] { item.Type.InheritanceRoot.Type, resultSelector.Body.Type }, Expression.Constant(item.Current), resultSelector); 336return Expression.Call(typeof(DataManipulation), "Update", new Type[] { rowTypeRoot.Type, resultSelector.Body.Type }, Expression.Constant(tracked.Current), check, resultSelector); 339return Expression.Call(typeof(DataManipulation), "Update", new Type[] { rowTypeRoot.Type, resultSelector.Body.Type }, Expression.Constant(tracked.Current), resultSelector);
CompiledQuery.cs (1)
243return typeof(ITable).IsAssignableFrom(query.Body.Type);
DataServices.cs (2)
266return Expression.Call(typeof(Queryable), "Select", new Type[] { elementType, selector.Body.Type }, query, selector); 525if (this.GetKeysFromPredicate(type, keys, predicate.Body)
DataShape.cs (3)
65Expression op = expression.Body; 166Expression body = lambda.Body; 259if (!typeof(IEnumerable).IsAssignableFrom(subquery.Body.Type)) {
SqlClient\Query\Funcletizer.cs (2)
385Expression body = this.Visit(lambda.Body); 386if (body != lambda.Body) {
SqlClient\Query\QueryConverter.cs (41)
332return this.VisitInner(lambda.Body); 396return this.VisitInner(lambda.Body); 418SqlNode project = this.Visit(selector.Body); 422return new SqlSelect(sql.SubSelect(SqlNodeType.Multiset, pselect, selector.Body.Type), alias, this.dominatingExpression); 466SqlNode colSelectorNode = this.VisitSequence(colSelector.Body); 476projection = this.VisitExpression(resultSelector.Body); 492SqlExpression outerKey = this.VisitExpression(outerKeySelector.Body); 495SqlExpression innerKey = this.VisitExpression(innerKeySelector.Body); 499SqlExpression result = this.VisitExpression(resultSelector.Body); 524SqlExpression outerKey = this.VisitExpression(outerKeySelector.Body); 527SqlExpression innerKey = this.VisitExpression(innerKeySelector.Body); 538SqlExpression result = this.VisitExpression(resultSelector.Body); 632select.Where = this.VisitExpression(predicate.Body); 673Expression.ArrayIndex(cpArray.Accessor.Body, Expression.Constant(vIndex.Value, vIndex.ClrType)), 714Expression.Lambda(Expression.Convert(cp.Accessor.Body, type), cp.Accessor.Parameters.ToArray()), 1485if (IsGrouping(expression.Body.Type)) { 1488if (!this.typeProvider.From(expression.Body.Type).IsOrderable) { 1489throw Error.TypeCannotBeOrdered(expression.Body.Type); 1501SqlExpression expr = this.VisitExpression(expression.Body); 1508if (IsGrouping(expression.Body.Type)) { 1511if (!this.typeProvider.From(expression.Body.Type).IsOrderable) { 1512throw Error.TypeCannotBeOrdered(expression.Body.Type); 1519SqlExpression expr = this.VisitExpression(expression.Body); 1540SqlExpression keyExpr = this.VisitExpression(keyLambda.Body); 1550SqlExpression keyDup = this.VisitExpression(keyLambda.Body); 1557elemExpr = this.VisitExpression(elemLambda.Body); 1561elemOnGroupSource = this.VisitExpression(elemLambda.Body); 1604SqlExpression resultExpr = this.VisitExpression(resultSelector.Body); 1645if (!outerNode && !isCount && (lambda == null || (lambda.Parameters.Count == 1 && lambda.Parameters[0] == lambda.Body)) && 1649lambda = Expression.Lambda(selectionLambda.Type, selectionLambda.Body, selectionLambda.Parameters); 1655if (lambda != null && !TypeSystem.IsSimpleType(lambda.Body.Type)) { 1656throw Error.CannotAggregateType(lambda.Body.Type); 1673SqlExpression exp = (lambda != null) ? this.VisitExpression(lambda.Body) : null; 1707exp = this.VisitExpression(lambda.Body); 1726SqlExpression exp = (lambda != null) ? this.VisitExpression(lambda.Body) : null; 1824SqlExpression cond = lambda != null ? this.VisitExpression(lambda.Body) : null; 2375select.Where = this.VisitExpression(lambda.Body); 2432isDbGenOnly = this.IsDbGeneratedKeyProjectionOnly(resultSelector.Body, id); 2447SqlExpression projection = this.VisitExpression(resultSelector.Body); 2482SqlExpression proj = this.VisitExpression(rs.Body); 2617seq = Expression.Call(typeof(Enumerable), "Select", new Type[] { rowType, resultSelector.Body.Type }, seq, resultSelector);
SqlClient\Query\SqlBinder.cs (1)
940Expression.MakeMemberAccess(cp.Accessor.Body, m.Member),
SqlClient\Query\SqlMethodCallConverter.cs (4)
1520Expression.Invoke(Expression.Constant(getStringContainsPatternForced), cp.Accessor.Body, Expression.Constant('~')), 1554Expression.Invoke(Expression.Constant(getStringStartsWithPatternForced), cp.Accessor.Body, Expression.Constant('~')), 1588Expression.Invoke(Expression.Constant(getStringEndsWithPatternForced), cp.Accessor.Body, Expression.Constant('~')), 2487Expression.Call(typeof(SqlHelpers), "TranslateVBLikePattern", Type.EmptyTypes, cp.Accessor.Body, Expression.Constant('~')),
SqlClient\Query\Translator.cs (1)
158return rc.Visit(subquery.Body);
SqlClient\SqlProvider.cs (5)
816query = lambda.Body; 898query = lambda.Body; 1143query = lambda.Body; 1330query = lambda.Body; 1396query = lambda.Body;
System.Data.Services (25)
parent\Client\System\Data\Services\Client\ALinq\ALinqExpressionVisitor.cs (2)
499Expression body = this.Visit(lambda.Body); 500if (body != lambda.Body)
System\Data\Services\DataServiceConfiguration.cs (2)
511((LambdaExpression)predicate).Body, // expression 514filter = Expression.Lambda(Expression.And(filter.Body, adjustedPredicate), parameter);
System\Data\Services\ExpandSegment.cs (3)
202if (lambda.Body.Type != typeof(bool) && lambda.Body.Type != typeof(bool?)) 205Strings.ExpandSegment_FilterBodyShouldReturnBool(lambda.Body.Type), "filter");
System\Data\Services\Internal\NeedSkipTokenVisitor.cs (2)
83visitor.Visit(l.Body); 110visitor.Visit(l.Body);
System\Data\Services\Parsing\RequestQueryParser.cs (2)
51Type selectorType = selectorLambda.Body.Type; 284((LambdaExpression)v.Order.Expression).Body,
System\Data\Services\Providers\BasicExpandProvider.cs (9)
236orderer = Expression.Lambda(ParameterReplacerVisitor.Replace(e.Body, e.Parameters[0], replaceExpression), parameter); 239.MakeGenericMethod(query.ElementType, orderer.Body.Type) 277ParameterReplacerVisitor.Replace(e.Body, e.Parameters[0], parameter), 281.MakeGenericMethod(query.ElementType, orderer.Body.Type) 969ExpandNodeAnnotationVisitor.AnnotateExpression(lambda.Body, lambda.Parameters[0], this); 971AddPropertyAccessesAsProjectedProperties(lambda.Body, expandNodeAnnotations); 1515Expression orderExpression = ParameterReplacerVisitor.Replace(orderLamba.Body, orderLamba.Parameters[0], source); 1750orderLambda.Body, 1806skipTokenTypes[i + 1] = ((LambdaExpression)this.OrderingInfo.OrderingExpressions[i].Expression).Body.Type;
System\Data\Services\RequestQueryProcessor.cs (4)
224filterLambda.Body, 1221skipTokenTypes[i + 1] = ((LambdaExpression)ordering.Expression).Body.Type; 1247Expression source = ParameterReplacerVisitor.Replace(sourceLambda.Body, sourceLambda.Parameters[0], expandParameter); 1271oldExpression.Body,
System\Data\Services\RequestUriProcessor.cs (1)
1051ParameterReplacerVisitor.Replace(input.Body, input.Parameters[0], p),
System.Data.Services.Client (44)
System\Data\Services\Client\ALinq\ALinqExpressionVisitor.cs (2)
499Expression body = this.Visit(lambda.Body); 500if (body != lambda.Body)
System\Data\Services\Client\ALinq\ExpressionNormalizer.cs (3)
489if (lambda.Body.NodeType == ExpressionType.Coalesce && lambda.Body.Type == typeof(bool)) 491BinaryExpression coalesce = (BinaryExpression)lambda.Body;
System\Data\Services\Client\ALinq\ProjectionAnalyzer.cs (12)
49if (le.Body.NodeType == ExpressionType.Constant) 51if (ClientType.CheckElementTypeIsEntity(le.Body.Type)) 56re.Projection = new ProjectionQueryOptionExpression(le.Body.Type, le, new List<string>()); 60if (le.Body.NodeType == ExpressionType.MemberInit || le.Body.NodeType == ExpressionType.New) 69Expression withoutConverts = SkipConverts(le.Body); 82bool knownEntityType = ClientType.CheckElementTypeIsEntity(e.Body.Type); 87NonEntityProjectionAnalyzer.Analyze(e.Body, pb); 91switch (e.Body.NodeType) 94EntityProjectionAnalyzer.Analyze((MemberInitExpression)e.Body, pb); 103NonEntityProjectionAnalyzer.Analyze(e.Body, pb); 225resource.Projection = new ProjectionQueryOptionExpression(lambda.Body.Type, lambda, pb.ProjectionPaths.ToList());
System\Data\Services\Client\ALinq\ProjectionRewriter.cs (2)
67Expression body = this.Visit(lambda.Body); 70Type delegateType = typeof(Func<,>).MakeGenericType(new Type[] { newLambdaParameter.Type, lambda.Body.Type });
System\Data\Services\Client\ALinq\ResourceBinder.cs (16)
109MethodCallExpression call = StripTo<MethodCallExpression>(projection.Selector.Body); 157AddConjuncts(le.Body, conjuncts); 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); 1382Expression body = StripCastMethodCalls(lambda.Body); 1609return parameter == StripTo<ParameterExpression>(lambda.Body); 1644Expression potentialRef = selector.Body; 1662return (le.Body == le.Parameters[1]); 1709if (resultSelector.Body.NodeType != ExpressionType.New) 1715NewExpression ne = (NewExpression)resultSelector.Body; 1878MemberInitExpression mie = StripTo<MemberInitExpression>(e.Body); 1886return MatchResource(source, out resource) && (e.Body is NewExpression);
System\Data\Services\Client\ProjectionPathBuilder.cs (1)
143Type projectionType = lambda.Body.Type;
System\Data\Services\Client\ProjectionPlanCompiler.cs (8)
81projection.Body.NodeType == ExpressionType.Constant || 82projection.Body.NodeType == ExpressionType.MemberInit || 83projection.Body.NodeType == ExpressionType.MemberAccess || 84projection.Body.NodeType == ExpressionType.Convert || 85projection.Body.NodeType == ExpressionType.ConvertChecked || 86projection.Body.NodeType == ExpressionType.New, 101result.ProjectedType = projection.Body.Type; 361Expression body = this.Visit(lambda.Body);
System.Web.DynamicData (1)
DynamicData\Util\Misc.cs (1)
250var expression = Expression.Call(typeof(Queryable), ordering, new Type[] { query.ElementType, lambda.Body.Type }, query.Expression, lambda);
System.Web.Extensions (3)
UI\WebControls\Dynamic.cs (3)
47new Type[] { source.ElementType, lambda.Body.Type }, 103new Type[] { source.ElementType, keyLambda.Body.Type, elementLambda.Body.Type },