Skip to main content

Evaluator

Assembly: ServiceStack.Razor.dll
View Source
Declaration
public class Evaluator

Fields

Assemblies

View Source
Declaration
public static readonly List<Assembly> Assemblies

AssemblyNames

View Source
Declaration
public static readonly List<string> AssemblyNames

NamespaceAssemblies

View Source
Declaration
public static readonly Dictionary<string, string> NamespaceAssemblies

Methods

AddAssembly(String)

View Source
Declaration
public static void AddAssembly(string assemblyName)
Parameters
TypeName
System.StringassemblyName

FindType(String)

View Source
Declaration
public static Type FindType(string typeName)
Returns

System.Type

Parameters
TypeName
System.StringtypeName

GetTypeName(Type)

View Source
Declaration
public string GetTypeName(Type type)
Returns

System.String

Parameters
TypeName
System.Typetype

GetInstance<T>()

View Source
Declaration
public T GetInstance<T>()
Returns

<T>

Type Parameters
  • T

CreateInstance()

View Source
Declaration
public object CreateInstance()
Returns

System.Object

GetCompiledMethodInfo(String)

View Source
Declaration
public MethodInfo GetCompiledMethodInfo(string name)
Returns

System.Reflection.MethodInfo

Parameters
TypeName
System.Stringname

Evaluate(String, Object[])

View Source
Declaration
public object Evaluate(string name, params object[] exprParams)
Returns

System.Object

Parameters
TypeName
System.Stringname
System.Object[]exprParams

Evaluate(Object, String, Object[])

View Source
Declaration
public object Evaluate(object instance, string name, params object[] exprParams)
Returns

System.Object

Parameters
TypeName
System.Objectinstance
System.Stringname
System.Object[]exprParams

Eval<T>(String, Object[])

View Source
Declaration
public T Eval<T>(string name, params object[] exprParams)
Returns

<T>

Parameters
TypeName
System.Stringname
System.Object[]exprParams
Type Parameters
  • T

Eval(String)

View Source
Declaration
public static object Eval(string code)
Returns

System.Object

Parameters
TypeName
System.Stringcode

Eval<T>(String)

View Source
Declaration
public static T Eval<T>(string code)
Returns

<T>

Parameters
TypeName
System.Stringcode
Type Parameters
  • T