ExpressionExtensionsGetExpressionPathAsStringT Method |
[This is preliminary documentation and is subject to change.]
Converts an expression into a human-readable string
Namespace:
CSInfrastructure.Extensions
Assembly:
CSInfrastructure (in CSInfrastructure.dll) Version: 1.8.0.0 (1.8.0.0)
Syntax public static string GetExpressionPathAsString<T>(
this Expression<T> expression
)
Parameters
- expression
- Type: System.Linq.ExpressionsExpressionT
The expression to stringfy
Type Parameters
- T
- The type used in the expression
Return Value
Type:
StringA human readable string representation of an expression
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
ExpressionT. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Examples The expression (x) => x.Property1.Property2.Property3[4].Property5 will be returned as "Property1.Property2.Property3[4].Property5"
See Also