ExpressionExtensions.MakeMemberAccess(Expression, MemberInfo) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a MemberExpression that represents accessing either a field or a property.
public static System.Linq.Expressions.MemberExpression MakeMemberAccess (this System.Linq.Expressions.Expression expression, System.Reflection.MemberInfo member);
public static System.Linq.Expressions.MemberExpression MakeMemberAccess (this System.Linq.Expressions.Expression? expression, System.Reflection.MemberInfo member);
static member MakeMemberAccess : System.Linq.Expressions.Expression * System.Reflection.MemberInfo -> System.Linq.Expressions.MemberExpression
<Extension()>
Public Function MakeMemberAccess (expression As Expression, member As MemberInfo) As MemberExpression
Parameters
- expression
- Expression
An Expression that represents the object that the member belongs to.
- member
- MemberInfo
The MemberInfo that describes the field or property to be accessed.
Returns
The MemberExpression that results from calling the appropriate factory method.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework