Skip to main content

DataBinder

Assembly: ServiceStack.Razor.dll
View Source
Declaration
public static class DataBinder

Methods

CompileToString(Type, String)

View Source
Declaration
public static Func<object, string> CompileToString(Type type, string expr)
Returns

System.Func<System.Object,System.String>

Parameters
TypeName
System.Typetype
System.Stringexpr

CompileStaticAccessToString(String)

View Source
Declaration
public static Func<string> CompileStaticAccessToString(string expr)
Returns

System.Func<System.String>

Parameters
TypeName
System.Stringexpr

Compile(Type, String)

View Source
Declaration
public static Func<object, object> Compile(Type type, string expr)
Returns

System.Func<System.Object,System.Object>

Parameters
TypeName
System.Typetype
System.Stringexpr

Compile<TModel, TProp>(String)

View Source
Declaration
public static Func<TModel, TProp> Compile<TModel, TProp>(string expression)
Returns

System.Func<<TModel>,<TProp>>

Parameters
TypeName
System.Stringexpression
Type Parameters
  • TModel
  • TProp