2 types derived from MemberExpression
System.Linq.Expressions (2)
182 references to MemberExpression
Microsoft.AspNetCore.Components.Forms (10)
Microsoft.AspNetCore.Components.Forms.Tests (3)
Microsoft.AspNetCore.Components.QuickGrid (5)
Microsoft.AspNetCore.Components.Web (7)
Microsoft.AspNetCore.Http.Extensions (22)
RequestDelegateFactory.cs (22)
92private static readonly MemberExpression RequestServicesExpr = Expression.Property(HttpContextExpr, typeof(HttpContext).GetProperty(nameof(HttpContext.RequestServices))!);
93private static readonly MemberExpression HttpRequestExpr = Expression.Property(HttpContextExpr, typeof(HttpContext).GetProperty(nameof(HttpContext.Request))!);
94private static readonly MemberExpression HttpResponseExpr = Expression.Property(HttpContextExpr, typeof(HttpContext).GetProperty(nameof(HttpContext.Response))!);
95private static readonly MemberExpression RequestAbortedExpr = Expression.Property(HttpContextExpr, typeof(HttpContext).GetProperty(nameof(HttpContext.RequestAborted))!);
96private static readonly MemberExpression UserExpr = Expression.Property(HttpContextExpr, typeof(HttpContext).GetProperty(nameof(HttpContext.User))!);
97private static readonly MemberExpression RouteValuesExpr = Expression.Property(HttpRequestExpr, typeof(HttpRequest).GetProperty(nameof(HttpRequest.RouteValues))!);
98private static readonly MemberExpression QueryExpr = Expression.Property(HttpRequestExpr, typeof(HttpRequest).GetProperty(nameof(HttpRequest.Query))!);
99private static readonly MemberExpression HeadersExpr = Expression.Property(HttpRequestExpr, typeof(HttpRequest).GetProperty(nameof(HttpRequest.Headers))!);
100private static readonly MemberExpression FormExpr = Expression.Property(HttpRequestExpr, typeof(HttpRequest).GetProperty(nameof(HttpRequest.Form))!);
101private static readonly MemberExpression RequestStreamExpr = Expression.Property(HttpRequestExpr, typeof(HttpRequest).GetProperty(nameof(HttpRequest.Body))!);
102private static readonly MemberExpression RequestPipeReaderExpr = Expression.Property(HttpRequestExpr, typeof(HttpRequest).GetProperty(nameof(HttpRequest.BodyReader))!);
103private static readonly MemberExpression FormFilesExpr = Expression.Property(FormExpr, typeof(IFormCollection).GetProperty(nameof(IFormCollection.Files))!);
104private static readonly MemberExpression StatusCodeExpr = Expression.Property(HttpResponseExpr, typeof(HttpResponse).GetProperty(nameof(HttpResponse.StatusCode))!);
105private static readonly MemberExpression CompletedTaskExpr = Expression.Property(null, (PropertyInfo)GetMemberInfo<Func<Task>>(() => Task.CompletedTask));
116private static readonly MemberExpression FilterContextHttpContextExpr = Expression.Property(FilterContextExpr, typeof(EndpointFilterInvocationContext).GetProperty(nameof(EndpointFilterInvocationContext.HttpContext))!);
117private static readonly MemberExpression FilterContextArgumentsExpr = Expression.Property(FilterContextExpr, typeof(EndpointFilterInvocationContext).GetProperty(nameof(EndpointFilterInvocationContext.Arguments))!);
118private static readonly MemberExpression FilterContextHttpContextResponseExpr = Expression.Property(FilterContextHttpContextExpr, typeof(HttpContext).GetProperty(nameof(HttpContext.Response))!);
119private static readonly MemberExpression FilterContextHttpContextStatusCodeExpr = Expression.Property(FilterContextHttpContextResponseExpr, typeof(HttpResponse).GetProperty(nameof(HttpResponse.StatusCode))!);
1564private static Expression GetValueFromProperty(MemberExpression sourceExpression, PropertyInfo itemProperty, string key, Type? returnType = null)
1970private static Expression BindParameterFromProperty(ParameterInfo parameter, MemberExpression property, PropertyInfo itemProperty, string key, RequestDelegateFactoryContext factoryContext, string source)
2424var mc = (MemberExpression)expr.Body;
Microsoft.AspNetCore.Http.Results.Tests (1)
Microsoft.AspNetCore.JsonPatch (3)
Microsoft.AspNetCore.JsonPatch.SystemTextJson (3)
Microsoft.AspNetCore.Mvc.Core (5)
Microsoft.AspNetCore.Mvc.ViewFeatures (30)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (4)
Microsoft.CSharp (1)
Microsoft.DotNet.Build.Tasks.Packaging (4)
netstandard (1)
System.ComponentModel.Composition.Registration (1)
System.Composition.Convention (1)
System.Core (1)
System.Linq.Expressions (79)
System\Linq\Expressions\MemberExpression.cs (32)
45internal static MemberExpression Make(Expression? expression, MemberInfo member)
48return fi == null ? (MemberExpression)Make(expression, (PropertyInfo)member) : Make(expression, fi);
78public MemberExpression Update(Expression? expression)
122/// Creates a <see cref="MemberExpression"/> accessing a field.
126/// <returns>The created <see cref="MemberExpression"/>.</returns>
127public static MemberExpression Field(Expression? expression, FieldInfo field)
144return MemberExpression.Make(expression, field);
148/// Creates a <see cref="MemberExpression"/> accessing a field.
152/// <returns>The created <see cref="MemberExpression"/>.</returns>
154public static MemberExpression Field(Expression expression, string fieldName)
170/// Creates a <see cref="MemberExpression"/> accessing a field.
175/// <returns>The created <see cref="MemberExpression"/>.</returns>
176public static MemberExpression Field(
200/// Creates a <see cref="MemberExpression"/> accessing a property.
204/// <returns>The created <see cref="MemberExpression"/>.</returns>
206public static MemberExpression Property(Expression expression, string propertyName)
221/// Creates a <see cref="MemberExpression"/> accessing a property.
226/// <returns>The created <see cref="MemberExpression"/>.</returns>
227public static MemberExpression Property(
245/// Creates a <see cref="MemberExpression"/> accessing a property.
249/// <returns>The created <see cref="MemberExpression"/>.</returns>
250public static MemberExpression Property(Expression? expression, PropertyInfo property)
290return MemberExpression.Make(expression, property);
294/// Creates a <see cref="MemberExpression"/> accessing a property.
298/// <returns>The created <see cref="MemberExpression"/>.</returns>
300public static MemberExpression Property(Expression? expression, MethodInfo propertyAccessor)
354/// Creates a <see cref="MemberExpression"/> accessing a property or field.
358/// <returns>The created <see cref="MemberExpression"/>.</returns>
360public static MemberExpression PropertyOrField(Expression expression, string propertyOrFieldName)
381/// Creates a <see cref="MemberExpression"/> accessing a property or field.
385/// <returns>The created <see cref="MemberExpression"/>.</returns>
386public static MemberExpression MakeMemberAccess(Expression? expression, MemberInfo member)
System.Private.Xml (1)