Class ExpressionExtensions
Extension methods for a range of different Expressions.
Inheritance
System.Object
ExpressionExtensions
Namespace: Cortex.Net.Core
Assembly: Cortex.Net.dll
Syntax
public static class ExpressionExtensions : object
Methods
| Improve this Doc View SourceExtractNameFromMemberExpression<TObject, TMember>(Expression<Func<TObject, TMember>>)
Extracts the property or method name from a Property or member access expression.
Declaration
public static string ExtractNameFromMemberExpression<TObject, TMember>(this Expression<Func<TObject, TMember>> expression)
Parameters
Type | Name | Description |
---|---|---|
Expression<Func<TObject, TMember>> | expression | The expression. |
Returns
Type | Description |
---|---|
System.String | The name of the method or property. |
Type Parameters
Name | Description |
---|---|
TObject | The type of the object to get the members from. |
TMember | The member of the object. |