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
Type | Name |
---|---|
System.String | assemblyName |
FindType(String)
View Source
Declaration
public static Type FindType(string typeName)
Returns
System.Type
Parameters
Type | Name |
---|---|
System.String | typeName |
GetTypeName(Type)
View Source
Declaration
public string GetTypeName(Type type)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Type | type |
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
Type | Name |
---|---|
System.String | name |
Evaluate(String, Object[])
View Source
Declaration
public object Evaluate(string name, params object[] exprParams)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.String | name |
System.Object[] | exprParams |
Evaluate(Object, String, Object[])
View Source
Declaration
public object Evaluate(object instance, string name, params object[] exprParams)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Object | instance |
System.String | name |
System.Object[] | exprParams |
Eval<T>(String, Object[])
View Source
Declaration
public T Eval<T>(string name, params object[] exprParams)
Returns
<T>
Parameters
Type | Name |
---|---|
System.String | name |
System.Object[] | exprParams |
Type Parameters
T
Eval(String)
View Source
Declaration
public static object Eval(string code)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.String | code |
Eval<T>(String)
View Source
Declaration
public static T Eval<T>(string code)
Returns
<T>
Parameters
Type | Name |
---|---|
System.String | code |
Type Parameters
T