Skip to main content

CachedExpressionCompiler

Assembly: ServiceStack.Common.dll​
View Source​
Declaration
public static class CachedExpressionCompiler

Methods​

Compile<TModel, TValue>(Expression<Func<TModel, TValue>>)​

View Source​
Declaration
public static Func<TModel, TValue> Compile<TModel, TValue>(this Expression<Func<TModel, TValue>> lambdaExpression)
Returns​

System.Func<<TModel>,<TValue>>

Parameters​
TypeName
System.Linq.Expressions.Expression<System.Func<<TModel>,<TValue>>>lambdaExpression
Type Parameters​
  • TModel
  • TValue

Evaluate(Expression)​

View Source​
Declaration
public static object Evaluate(Expression arg)
Returns​

System.Object

Parameters​
TypeName
System.Linq.Expressions.Expressionarg