Skip to main content

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
TypeName
System.Linq.Expressions.Expressione

PropertyFromExpression<TModel>(Expression<Func<TModel, Object>>)

View Source
Declaration
public static PropertyInfo PropertyFromExpression<TModel>(Expression<Func<TModel, object>> expr)
Returns

System.Reflection.PropertyInfo

Parameters
TypeName
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
TypeName
System.Linq.Expressions.Expressionarg

GetFieldNames<T>(Expression<Func<T, Object>>)

View Source
Declaration
public static string[] GetFieldNames<T>(this Expression<Func<T, object>> expr)
Returns

System.String[]

Parameters
TypeName
System.Linq.Expressions.Expression<System.Func<<T>,System.Object>>expr
Type Parameters
  • T