Method GetSortExpression
GetSortExpression<T, TResult>(string)
Gets the sort expression for the specified property name.
public LambdaExpression GetSortExpression<T, TResult>(string propertyName)
Parameters
propertyName
stringThe name of the property.
Returns
- LambdaExpression
The sort expression.
Type Parameters
T
The type of the object.
TResult
The type of the property.