InspectUtils
Assembly: ServiceStack.Client.dll
View Source
Declaration
public static class InspectUtils
Methods
FindMember(Expression)
View Source
Declaration
public static Expression FindMember(Expression e)
Returns
System.Linq.Expressions.Expression
Parameters
Type | Name |
---|---|
System.Linq.Expressions.Expression | e |
PropertyFromExpression<TModel>(Expression<Func<TModel, Object>>)
View Source
Declaration
public static PropertyInfo PropertyFromExpression<TModel>(Expression<Func<TModel, object>> expr)
Returns
System.Reflection.PropertyInfo
Parameters
Type | Name |
---|---|
System.Linq.Expressions.Expression<System.Func<<TModel>,System.Object>> | expr |
Type Parameters
TModel
Evaluate(Expression)
View Source
Declaration
public static object Evaluate(Expression arg)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Linq.Expressions.Expression | arg |
GetFieldNames<T>(Expression<Func<T, Object>>)
View Source
Declaration
public static string[] GetFieldNames<T>(this Expression<Func<T, object>> expr)
Returns
System.String[]
Parameters
Type | Name |
---|---|
System.Linq.Expressions.Expression<System.Func<<T>,System.Object>> | expr |
Type Parameters
T