2 types derived from MemberExpression
System.Linq.Expressions (2)
181 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)
91private static readonly MemberExpression RequestServicesExpr = Expression.Property(HttpContextExpr, typeof(HttpContext).GetProperty(nameof(HttpContext.RequestServices))!);
92private static readonly MemberExpression HttpRequestExpr = Expression.Property(HttpContextExpr, typeof(HttpContext).GetProperty(nameof(HttpContext.Request))!);
93private static readonly MemberExpression HttpResponseExpr = Expression.Property(HttpContextExpr, typeof(HttpContext).GetProperty(nameof(HttpContext.Response))!);
94private static readonly MemberExpression RequestAbortedExpr = Expression.Property(HttpContextExpr, typeof(HttpContext).GetProperty(nameof(HttpContext.RequestAborted))!);
95private static readonly MemberExpression UserExpr = Expression.Property(HttpContextExpr, typeof(HttpContext).GetProperty(nameof(HttpContext.User))!);
96private static readonly MemberExpression RouteValuesExpr = Expression.Property(HttpRequestExpr, typeof(HttpRequest).GetProperty(nameof(HttpRequest.RouteValues))!);
97private static readonly MemberExpression QueryExpr = Expression.Property(HttpRequestExpr, typeof(HttpRequest).GetProperty(nameof(HttpRequest.Query))!);
98private static readonly MemberExpression HeadersExpr = Expression.Property(HttpRequestExpr, typeof(HttpRequest).GetProperty(nameof(HttpRequest.Headers))!);
99private static readonly MemberExpression FormExpr = Expression.Property(HttpRequestExpr, typeof(HttpRequest).GetProperty(nameof(HttpRequest.Form))!);
100private static readonly MemberExpression RequestStreamExpr = Expression.Property(HttpRequestExpr, typeof(HttpRequest).GetProperty(nameof(HttpRequest.Body))!);
101private static readonly MemberExpression RequestPipeReaderExpr = Expression.Property(HttpRequestExpr, typeof(HttpRequest).GetProperty(nameof(HttpRequest.BodyReader))!);
102private static readonly MemberExpression FormFilesExpr = Expression.Property(FormExpr, typeof(IFormCollection).GetProperty(nameof(IFormCollection.Files))!);
103private static readonly MemberExpression StatusCodeExpr = Expression.Property(HttpResponseExpr, typeof(HttpResponse).GetProperty(nameof(HttpResponse.StatusCode))!);
104private static readonly MemberExpression CompletedTaskExpr = Expression.Property(null, (PropertyInfo)GetMemberInfo<Func<Task>>(() => Task.CompletedTask));
115private static readonly MemberExpression FilterContextHttpContextExpr = Expression.Property(FilterContextExpr, typeof(EndpointFilterInvocationContext).GetProperty(nameof(EndpointFilterInvocationContext.HttpContext))!);
116private static readonly MemberExpression FilterContextArgumentsExpr = Expression.Property(FilterContextExpr, typeof(EndpointFilterInvocationContext).GetProperty(nameof(EndpointFilterInvocationContext.Arguments))!);
117private static readonly MemberExpression FilterContextHttpContextResponseExpr = Expression.Property(FilterContextHttpContextExpr, typeof(HttpContext).GetProperty(nameof(HttpContext.Response))!);
118private static readonly MemberExpression FilterContextHttpContextStatusCodeExpr = Expression.Property(FilterContextHttpContextResponseExpr, typeof(HttpResponse).GetProperty(nameof(HttpResponse.StatusCode))!);
1552private static Expression GetValueFromProperty(MemberExpression sourceExpression, PropertyInfo itemProperty, string key, Type? returnType = null)
1958private static Expression BindParameterFromProperty(ParameterInfo parameter, MemberExpression property, PropertyInfo itemProperty, string key, RequestDelegateFactoryContext factoryContext, string source) =>
2378var mc = (MemberExpression)expr.Body;
Microsoft.AspNetCore.Http.Results.Tests (1)
Microsoft.AspNetCore.JsonPatch (3)
Microsoft.AspNetCore.Mvc.Core (5)
Microsoft.AspNetCore.Mvc.ViewFeatures (30)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (4)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Microsoft.CSharp (1)
Microsoft.DotNet.Build.Tasks.Packaging (4)
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (1)
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)