| Clean Architecture Toolkit for .NET | |||||
|
Clean Architecture Toolkit is a clean, modular architecture foundation for .NET applications. It embraces SOLID principles and focuses on maintainability, testability, and scalability through clear boundaries and pluggable design. |
|
||||
|
| HOME | MODULE OVERVIEW | DEMO | CAT.EXTENSIONS | |
|||||
Code Reference
» Cat.Expression.Extensions Assembly » Cat.Expression.Extensions Namespace » ExpressionExtensions Class
ExpressionExtensions.GetMemberInfo<T,TProperty>(this Expression<Func<T,TProperty>>) Method
Resolves the member a simple member access expression points to, for example the Id property in x => x.Id.
public static System.Reflection.MemberInfo? GetMemberInfo<T,TProperty>(this System.Linq.Expressions.Expression<System.Func<T,TProperty>> expression);
Type parameters
T
The type the expression’s parameter is evaluated against.
TProperty
The type of value the expression returns.
Parameters
expression System.Linq.Expressions.Expression<System.Func<T,TProperty>>
The expression to inspect.
Returns
System.Reflection.MemberInfo
The resolved member, or null if the expression isn’t a direct member access on its parameter.