1 write to Expression
System.Linq.Expressions (1)
System\Linq\Expressions\MemberExpression.cs (1)
30Expression = expression;
67 references to Expression
Microsoft.AspNetCore.Components.Forms (6)
FieldIdentifier.cs (4)
114switch (memberExpression.Expression) 121case MemberExpression member when member.Expression is ConstantExpression: 129var modelLambda = Expression.Lambda(typeof(Func<object?>), memberExpression.Expression); 160switch (member.Expression)
src\Components\Shared\src\ExpressionFormatting\ExpressionFormatter.cs (2)
102node = memberExpression.Expression; 207case MemberExpression memberExpression when memberExpression.Expression is ConstantExpression constantExpression:
Microsoft.AspNetCore.Components.Forms.Tests (1)
FieldIdentifierTest.cs (1)
153var value = FieldIdentifier.GetModelFromMemberAccess((MemberExpression)body.Expression, cache);
Microsoft.AspNetCore.Components.QuickGrid (5)
Columns\GridSort.cs (5)
144if (body.Expression is ParameterExpression) 152while (node.Expression is not null) 154if (node.Expression is MemberExpression parentMember) 159else if (node.Expression is ParameterExpression) 181body = (body.Expression as MemberExpression)!;
Microsoft.AspNetCore.Components.Web (2)
src\Components\Shared\src\ExpressionFormatting\ExpressionFormatter.cs (2)
102node = memberExpression.Expression; 207case MemberExpression memberExpression when memberExpression.Expression is ConstantExpression constantExpression:
Microsoft.AspNetCore.JsonPatch (2)
JsonPatchDocumentOfT.cs (2)
699listOfSegments.AddRange(GetPathSegments(memberExpression.Expression)); 715var jsonObjectContract = ContractResolver.ResolveContract(memberExpression.Expression.Type) as JsonObjectContract;
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\ModelBindingHelper.cs (1)
304if (memberExpression.Expression!.NodeType != ExpressionType.Parameter)
Microsoft.AspNetCore.Mvc.ViewFeatures (16)
CachedExpressionCompiler.cs (8)
58case MemberExpression memberExpression when memberExpression.Expression is ConstantExpression constantExpression: 62case MemberExpression memberExpression when memberExpression.Expression == null: 66case MemberExpression memberExpression when memberExpression.Expression == expression.Parameters[0]: 79while (memberExpression.Expression != null) 81if (memberExpression.Expression is MemberExpression leftExpression) 86else if (memberExpression.Expression == expression.Parameters[0]) 200AddNullCheck(currentExpression.Expression, ref combinedNullTest); 202if (currentExpression.Expression is MemberExpression leftExpression)
ExpressionHelper.cs (2)
98part = memberExpressionPart.Expression; 177part = memberExpression.Expression;
ExpressionMetadataProvider.cs (2)
48memberExpression.Expression.NodeType == ExpressionType.Constant) 60containerType = memberExpression.Expression?.Type;
LambdaExpressionComparer.cs (3)
47expression1 = memberExpression1.Expression; 51expression2 = memberExpression2.Expression; 99expression = memberExpression.Expression;
MemberExpressionCacheKey.cs (1)
83_memberExpression = _memberExpression.Expression as MemberExpression;
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
ExpressionTrees\Sources\ExprLambdaUtils.vb (1)
336Visit(node.Expression)
Microsoft.Maui.Controls.Compatibility (2)
Tizen\Forms.cs (2)
424 if (node.Expression is ConstantExpression && node.Member is FieldInfo) 426 var container = ((ConstantExpression)node.Expression).Value;
System.Linq.Expressions (31)
System\Linq\Expressions\BinaryExpression.cs (3)
177if (member.Expression == null) 190ParameterExpression temp1 = Variable(member.Expression.Type, "temp1"); 193Expression e1 = Expression.Assign(temp1, member.Expression);
System\Linq\Expressions\Compiler\LambdaCompiler.Address.cs (4)
118if (node.Expression != null) 120EmitInstance(node.Expression, out objectType); 275if (node.Expression != null) 277EmitInstance(node.Expression, out instanceType);
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (4)
794if (lvalue.Expression != null) 796EmitInstance(lvalue.Expression, out objectType); 837if (node.Expression != null) 839EmitInstance(node.Expression, out instanceType);
System\Linq\Expressions\Compiler\StackSpiller.cs (4)
360cr.Add(lvalue.Expression); 366cr.MarkRefInstance(lvalue.Expression); 387Result expression = RewriteExpression(node.Expression, stack); 396RequireNotRefInstance(node.Expression);
System\Linq\Expressions\DebugViewWriter.cs (1)
541OutMember(node, node.Expression, node.Member);
System\Linq\Expressions\Expression.DebuggerProxy.cs (1)
287public Expression? Expression => _node.Expression;
System\Linq\Expressions\ExpressionStringBuilder.cs (1)
410OutMember(node.Expression, node.Member);
System\Linq\Expressions\ExpressionVisitor.cs (1)
376return node.Update(Visit(node.Expression));
System\Linq\Expressions\Interpreter\LightCompiler.cs (5)
653Expression? expr = member.Expression; 2306if (member.Expression != null) 2308memberTemp = _locals.DefineLocal(Expression.Parameter(member.Expression.Type, "member"), _instructions.Count); 2309EmitThisForMethodCall(member.Expression); 2442CompileMember(node.Expression, node.Member, forBinding: false);
System\Linq\Expressions\MemberExpression.cs (4)
52/// Returns the node type of this <see cref="Expression"/>. (Inherited from <see cref="Expression"/>.) 76/// <param name="expression">The <see cref="Expression"/> property of the result.</param> 80if (expression == Expression)
System\Linq\Expressions\UnaryExpression.cs (3)
179if (member.Expression == null) 186ParameterExpression temp1 = Parameter(member.Expression.Type, name: null); 187BinaryExpression initTemp1 = Assign(temp1, member.Expression);