C# Класс Z.Expressions.EvalContext

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Clone ( ) : EvalContext

Makes a shallow copy of current EvalContext.

Compile ( string code, Type>.IDictionary parameterTypes ) : object>.Func

Compile the code or expression and return a delegate of type Func to execute.

Compile ( string code ) : object>.Func

Compile the code or expression and return a delegate of type Func to execute.

Compile ( string code, IEnumerable parameterTypes ) : object>.Func

Compile the code or expression and return a delegate of type Func to execute.

Compile ( string code, Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7, Type type8, Type type9 ) : Func

Compile the code or expression and return a delegate of type Func to execute.

Compile ( string code, Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7, Type type8 ) : Func

Compile the code or expression and return a delegate of type Func to execute.

Compile ( string code, Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7 ) : Func

Compile the code or expression and return a delegate of type Func to execute.

Compile ( string code, Type type1, Type type2, Type type3, Type type4, Type type5, Type type6 ) : Func

Compile the code or expression and return a delegate of type Func to execute.

Compile ( string code, Type type1, Type type2, Type type3, Type type4, Type type5 ) : Func

Compile the code or expression and return a delegate of type Func to execute.

Compile ( string code, Type type1, Type type2, Type type3, Type type4 ) : Func

Compile the code or expression and return a delegate of type Func to execute.

Compile ( string code, Type type1, Type type2, Type type3 ) : Func

Compile the code or expression and return a delegate of type Func to execute.

Compile ( string code, Type type1, Type type2 ) : Func

Compile the code or expression and return a delegate of type Func to execute.

Compile ( string code, Type type1 ) : object>.Func

Compile the code or expression and return a delegate of type Func to execute.

Compile ( string code ) : Func

Compile the code or expression and return a delegate of type Func to execute.

CompileAsync ( string code, Type>.IDictionary parameterTypes ) : object>>.Task

Compile the code or expression and return a delegate of type Func to execute.

CompileAsync ( string code ) : object>>.Task

Compile the code or expression and return a delegate of type Func to execute.

CompileAsync ( string code, IEnumerable parameterTypes ) : object>>.Task

Compile the code or expression and return a delegate of type Func to execute.

CompileAsync ( string code, Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7, Type type8, Type type9 ) : Task>

Compile the code or expression and return a delegate of type Func to execute.

CompileAsync ( string code, Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7, Type type8 ) : Task>

Compile the code or expression and return a delegate of type Func to execute.

CompileAsync ( string code, Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7 ) : Task>

Compile the code or expression and return a delegate of type Func to execute.

CompileAsync ( string code, Type type1, Type type2, Type type3, Type type4, Type type5, Type type6 ) : Task>

Compile the code or expression and return a delegate of type Func to execute.

CompileAsync ( string code, Type type1, Type type2, Type type3, Type type4, Type type5 ) : Task>

Compile the code or expression and return a delegate of type Func to execute.

CompileAsync ( string code, Type type1, Type type2, Type type3, Type type4 ) : Task>

Compile the code or expression and return a delegate of type Func to execute.

CompileAsync ( string code, Type type1, Type type2, Type type3 ) : Task>

Compile the code or expression and return a delegate of type Func to execute.

CompileAsync ( string code, Type type1, Type type2 ) : Task>

Compile the code or expression and return a delegate of type Func to execute.

CompileAsync ( string code, Type type1 ) : object>>.Task

Compile the code or expression and return a delegate of type Func to execute.

CompileAsync ( string code ) : Task>

Compile the code or expression and return a delegate of type Func to execute.

EvalContext ( ) : System
ExecuteAsync ( string code ) : Task

Compile and evaluate the code or expression and return the result.

ExecuteAsync ( string code, object parameters ) : Task

Compile and evaluate the code or expression and return the result.

RegisterAlias ( string alias, string name ) : EvalContext

Registers an alias for a variable, constant or type name.

RegisterAssembly ( ) : EvalContext

Registers all types from all specified assemblies.

RegisterDefaultAlias ( ) : void

Registers default alias (Extension Methods, Names, Static Members, Types and Values).

RegisterDefaultAliasSafe ( ) : void

Registers default alias (Extension Methods, Names, Static Members, Types and Values).

RegisterDefaultAliasUnsafe ( ) : void

Registers default alias (Extension Methods, Names, Static Members, Types and Values).

RegisterDomainAssemblies ( ) : EvalContext

Registers all types from all domain assemblies.

RegisterExtensionMethod ( ) : EvalContext

Registers all extension methods from specified types.

RegisterGlobalConstant ( string name, object value ) : EvalContext

Registers a global constant.

RegisterGlobalVariable ( string name, object value ) : EvalContext

Registers a global variable.

RegisterMember ( ) : EvalContext
RegisterStaticMember ( ) : EvalContext

Registers static member from specified types.

RegisterType ( ) : EvalContext

Registers specified types using Type.Name and Type.FullName as alias.

UnregisterAlias ( ) : EvalContext

Unregisters all alias for a variable, constant or type name.

UnregisterAll ( ) : EvalContext

Unregisters all kind of alias (Extension Methods, Names, Static Members, Types and Values).

UnregisterAssembly ( ) : EvalContext

Unregisters all types from all specified assemblies.

UnregisterExtensionMethod ( ) : EvalContext

Unregisters all extension methods from the specified types.

UnregisterGlobalConstant ( ) : EvalContext

Unregisters a global constant.

UnregisterGlobalVariable ( ) : EvalContext

Unregisters a global variable.

UnregisterMember ( ) : EvalContext

Unregisters member from specified types.

UnregisterStaticMember ( ) : EvalContext

Unregisters static member from specified types.

UnregisterType ( ) : EvalContext

Unregisters specified types using Type.Name and Type.FullName as alias.

Описание методов

Clone() публичный Метод

Makes a shallow copy of current EvalContext.
public Clone ( ) : EvalContext
Результат EvalContext

Compile() публичный Метод

Compile the code or expression and return a delegate of type Func to execute.
public Compile ( string code, Type>.IDictionary parameterTypes ) : object>.Func
code string The code or expression to compile.
parameterTypes Type>.IDictionary Parameter types used to compile the code or expression.
Результат object>.Func

Compile() публичный Метод

Compile the code or expression and return a delegate of type Func to execute.
public Compile ( string code ) : object>.Func
code string The code or expression to compile.
Результат object>.Func

Compile() публичный Метод

Compile the code or expression and return a delegate of type Func to execute.
public Compile ( string code, IEnumerable parameterTypes ) : object>.Func
code string The code or expression to compile.
parameterTypes IEnumerable Parameter types used to compile the code or expression.
Результат object>.Func

Compile() публичный Метод

Compile the code or expression and return a delegate of type Func to execute.
public Compile ( string code, Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7, Type type8, Type type9 ) : Func
code string The code or expression to compile.
type1 System.Type The first type used to compile the code or expression.
type2 System.Type The second type used to compile the code or expression.
type3 System.Type The third type used to compile the code or expression.
type4 System.Type The fourth type used to compile the code or expression.
type5 System.Type The fifth type used to compile the code or expression.
type6 System.Type The sixth type used to compile the code or expression.
type7 System.Type The seventh type used to compile the code or expression.
type8 System.Type The eighth type used to compile the code or expression.
type9 System.Type The ninth type used to compile the code or expression.
Результат Func

Compile() публичный Метод

Compile the code or expression and return a delegate of type Func to execute.
public Compile ( string code, Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7, Type type8 ) : Func
code string The code or expression to compile.
type1 System.Type The first type used to compile the code or expression.
type2 System.Type The second type used to compile the code or expression.
type3 System.Type The third type used to compile the code or expression.
type4 System.Type The fourth type used to compile the code or expression.
type5 System.Type The fifth type used to compile the code or expression.
type6 System.Type The sixth type used to compile the code or expression.
type7 System.Type The seventh type used to compile the code or expression.
type8 System.Type The eighth type used to compile the code or expression.
Результат Func

Compile() публичный Метод

Compile the code or expression and return a delegate of type Func to execute.
public Compile ( string code, Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7 ) : Func
code string The code or expression to compile.
type1 System.Type The first type used to compile the code or expression.
type2 System.Type The second type used to compile the code or expression.
type3 System.Type The third type used to compile the code or expression.
type4 System.Type The fourth type used to compile the code or expression.
type5 System.Type The fifth type used to compile the code or expression.
type6 System.Type The sixth type used to compile the code or expression.
type7 System.Type The seventh type used to compile the code or expression.
Результат Func

Compile() публичный Метод

Compile the code or expression and return a delegate of type Func to execute.
public Compile ( string code, Type type1, Type type2, Type type3, Type type4, Type type5, Type type6 ) : Func
code string The code or expression to compile.
type1 System.Type The first type used to compile the code or expression.
type2 System.Type The second type used to compile the code or expression.
type3 System.Type The third type used to compile the code or expression.
type4 System.Type The fourth type used to compile the code or expression.
type5 System.Type The fifth type used to compile the code or expression.
type6 System.Type The sixth type used to compile the code or expression.
Результат Func

Compile() публичный Метод

Compile the code or expression and return a delegate of type Func to execute.
public Compile ( string code, Type type1, Type type2, Type type3, Type type4, Type type5 ) : Func
code string The code or expression to compile.
type1 System.Type The first type used to compile the code or expression.
type2 System.Type The second type used to compile the code or expression.
type3 System.Type The third type used to compile the code or expression.
type4 System.Type The fourth type used to compile the code or expression.
type5 System.Type The fifth type used to compile the code or expression.
Результат Func

Compile() публичный Метод

Compile the code or expression and return a delegate of type Func to execute.
public Compile ( string code, Type type1, Type type2, Type type3, Type type4 ) : Func
code string The code or expression to compile.
type1 System.Type The first type used to compile the code or expression.
type2 System.Type The second type used to compile the code or expression.
type3 System.Type The third type used to compile the code or expression.
type4 System.Type The fourth type used to compile the code or expression.
Результат Func

Compile() публичный Метод

Compile the code or expression and return a delegate of type Func to execute.
public Compile ( string code, Type type1, Type type2, Type type3 ) : Func
code string The code or expression to compile.
type1 System.Type The first type used to compile the code or expression.
type2 System.Type The second type used to compile the code or expression.
type3 System.Type The third type used to compile the code or expression.
Результат Func

Compile() публичный Метод

Compile the code or expression and return a delegate of type Func to execute.
public Compile ( string code, Type type1, Type type2 ) : Func
code string The code or expression to compile.
type1 System.Type The first type used to compile the code or expression.
type2 System.Type The second type used to compile the code or expression.
Результат Func

Compile() публичный Метод

Compile the code or expression and return a delegate of type Func to execute.
public Compile ( string code, Type type1 ) : object>.Func
code string The code or expression to compile.
type1 System.Type The first type used to compile the code or expression.
Результат object>.Func

Compile() публичный Метод

Compile the code or expression and return a delegate of type Func to execute.
public Compile ( string code ) : Func
code string The code or expression to compile.
Результат Func

CompileAsync() публичный Метод

Compile the code or expression and return a delegate of type Func to execute.
public CompileAsync ( string code, Type>.IDictionary parameterTypes ) : object>>.Task
code string The code or expression to compile.
parameterTypes Type>.IDictionary Parameter types used to compile the code or expression.
Результат object>>.Task

CompileAsync() публичный Метод

Compile the code or expression and return a delegate of type Func to execute.
public CompileAsync ( string code ) : object>>.Task
code string The code or expression to compile.
Результат object>>.Task

CompileAsync() публичный Метод

Compile the code or expression and return a delegate of type Func to execute.
public CompileAsync ( string code, IEnumerable parameterTypes ) : object>>.Task
code string The code or expression to compile.
parameterTypes IEnumerable Parameter types used to compile the code or expression.
Результат object>>.Task

CompileAsync() публичный Метод

Compile the code or expression and return a delegate of type Func to execute.
public CompileAsync ( string code, Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7, Type type8, Type type9 ) : Task>
code string The code or expression to compile.
type1 System.Type The first type used to compile the code or expression.
type2 System.Type The second type used to compile the code or expression.
type3 System.Type The third type used to compile the code or expression.
type4 System.Type The fourth type used to compile the code or expression.
type5 System.Type The fifth type used to compile the code or expression.
type6 System.Type The sixth type used to compile the code or expression.
type7 System.Type The seventh type used to compile the code or expression.
type8 System.Type The eighth type used to compile the code or expression.
type9 System.Type The ninth type used to compile the code or expression.
Результат Task>

CompileAsync() публичный Метод

Compile the code or expression and return a delegate of type Func to execute.
public CompileAsync ( string code, Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7, Type type8 ) : Task>
code string The code or expression to compile.
type1 System.Type The first type used to compile the code or expression.
type2 System.Type The second type used to compile the code or expression.
type3 System.Type The third type used to compile the code or expression.
type4 System.Type The fourth type used to compile the code or expression.
type5 System.Type The fifth type used to compile the code or expression.
type6 System.Type The sixth type used to compile the code or expression.
type7 System.Type The seventh type used to compile the code or expression.
type8 System.Type The eighth type used to compile the code or expression.
Результат Task>

CompileAsync() публичный Метод

Compile the code or expression and return a delegate of type Func to execute.
public CompileAsync ( string code, Type type1, Type type2, Type type3, Type type4, Type type5, Type type6, Type type7 ) : Task>
code string The code or expression to compile.
type1 System.Type The first type used to compile the code or expression.
type2 System.Type The second type used to compile the code or expression.
type3 System.Type The third type used to compile the code or expression.
type4 System.Type The fourth type used to compile the code or expression.
type5 System.Type The fifth type used to compile the code or expression.
type6 System.Type The sixth type used to compile the code or expression.
type7 System.Type The seventh type used to compile the code or expression.
Результат Task>

CompileAsync() публичный Метод

Compile the code or expression and return a delegate of type Func to execute.
public CompileAsync ( string code, Type type1, Type type2, Type type3, Type type4, Type type5, Type type6 ) : Task>
code string The code or expression to compile.
type1 System.Type The first type used to compile the code or expression.
type2 System.Type The second type used to compile the code or expression.
type3 System.Type The third type used to compile the code or expression.
type4 System.Type The fourth type used to compile the code or expression.
type5 System.Type The fifth type used to compile the code or expression.
type6 System.Type The sixth type used to compile the code or expression.
Результат Task>

CompileAsync() публичный Метод

Compile the code or expression and return a delegate of type Func to execute.
public CompileAsync ( string code, Type type1, Type type2, Type type3, Type type4, Type type5 ) : Task>
code string The code or expression to compile.
type1 System.Type The first type used to compile the code or expression.
type2 System.Type The second type used to compile the code or expression.
type3 System.Type The third type used to compile the code or expression.
type4 System.Type The fourth type used to compile the code or expression.
type5 System.Type The fifth type used to compile the code or expression.
Результат Task>

CompileAsync() публичный Метод

Compile the code or expression and return a delegate of type Func to execute.
public CompileAsync ( string code, Type type1, Type type2, Type type3, Type type4 ) : Task>
code string The code or expression to compile.
type1 System.Type The first type used to compile the code or expression.
type2 System.Type The second type used to compile the code or expression.
type3 System.Type The third type used to compile the code or expression.
type4 System.Type The fourth type used to compile the code or expression.
Результат Task>

CompileAsync() публичный Метод

Compile the code or expression and return a delegate of type Func to execute.
public CompileAsync ( string code, Type type1, Type type2, Type type3 ) : Task>
code string The code or expression to compile.
type1 System.Type The first type used to compile the code or expression.
type2 System.Type The second type used to compile the code or expression.
type3 System.Type The third type used to compile the code or expression.
Результат Task>

CompileAsync() публичный Метод

Compile the code or expression and return a delegate of type Func to execute.
public CompileAsync ( string code, Type type1, Type type2 ) : Task>
code string The code or expression to compile.
type1 System.Type The first type used to compile the code or expression.
type2 System.Type The second type used to compile the code or expression.
Результат Task>

CompileAsync() публичный Метод

Compile the code or expression and return a delegate of type Func to execute.
public CompileAsync ( string code, Type type1 ) : object>>.Task
code string The code or expression to compile.
type1 System.Type The first type used to compile the code or expression.
Результат object>>.Task

CompileAsync() публичный Метод

Compile the code or expression and return a delegate of type Func to execute.
public CompileAsync ( string code ) : Task>
code string The code or expression to compile.
Результат Task>

EvalContext() публичный Метод

public EvalContext ( ) : System
Результат System

ExecuteAsync() публичный Метод

Compile and evaluate the code or expression and return the result.
public ExecuteAsync ( string code ) : Task
code string The code or expression to evaluate.
Результат Task

ExecuteAsync() публичный Метод

Compile and evaluate the code or expression and return the result.
public ExecuteAsync ( string code, object parameters ) : Task
code string The code or expression to evaluate.
parameters object The parameter values used to evaluates the code or expression.
Результат Task

RegisterAlias() публичный Метод

Registers an alias for a variable, constant or type name.
Thrown an exception if the alias already exists.
public RegisterAlias ( string alias, string name ) : EvalContext
alias string The alias to register.
name string The variable, constant or type name to register for the specified alias.
Результат EvalContext

RegisterAssembly() публичный Метод

Registers all types from all specified assemblies.
public RegisterAssembly ( ) : EvalContext
Результат EvalContext

RegisterDefaultAlias() публичный Метод

Registers default alias (Extension Methods, Names, Static Members, Types and Values).
public RegisterDefaultAlias ( ) : void
Результат void

RegisterDefaultAliasSafe() публичный Метод

Registers default alias (Extension Methods, Names, Static Members, Types and Values).
public RegisterDefaultAliasSafe ( ) : void
Результат void

RegisterDefaultAliasUnsafe() публичный Метод

Registers default alias (Extension Methods, Names, Static Members, Types and Values).
public RegisterDefaultAliasUnsafe ( ) : void
Результат void

RegisterDomainAssemblies() публичный Метод

Registers all types from all domain assemblies.
public RegisterDomainAssemblies ( ) : EvalContext
Результат EvalContext

RegisterExtensionMethod() публичный Метод

Registers all extension methods from specified types.
public RegisterExtensionMethod ( ) : EvalContext
Результат EvalContext

RegisterGlobalConstant() публичный Метод

Registers a global constant.
Thrown an exception if the global constant name already exists.
public RegisterGlobalConstant ( string name, object value ) : EvalContext
name string The global constant name.
value object The global constant value.
Результат EvalContext

RegisterGlobalVariable() публичный Метод

Registers a global variable.
Thrown an exception if the global variable name already exists.
public RegisterGlobalVariable ( string name, object value ) : EvalContext
name string The global variable name.
value object The global variable value.
Результат EvalContext

RegisterMember() публичный Метод

public RegisterMember ( ) : EvalContext
Результат EvalContext

RegisterStaticMember() публичный Метод

Registers static member from specified types.
public RegisterStaticMember ( ) : EvalContext
Результат EvalContext

RegisterType() публичный Метод

Registers specified types using Type.Name and Type.FullName as alias.
public RegisterType ( ) : EvalContext
Результат EvalContext

UnregisterAlias() публичный Метод

Unregisters all alias for a variable, constant or type name.
public UnregisterAlias ( ) : EvalContext
Результат EvalContext

UnregisterAll() публичный Метод

Unregisters all kind of alias (Extension Methods, Names, Static Members, Types and Values).
public UnregisterAll ( ) : EvalContext
Результат EvalContext

UnregisterAssembly() публичный Метод

Unregisters all types from all specified assemblies.
public UnregisterAssembly ( ) : EvalContext
Результат EvalContext

UnregisterExtensionMethod() публичный Метод

Unregisters all extension methods from the specified types.
public UnregisterExtensionMethod ( ) : EvalContext
Результат EvalContext

UnregisterGlobalConstant() публичный Метод

Unregisters a global constant.
public UnregisterGlobalConstant ( ) : EvalContext
Результат EvalContext

UnregisterGlobalVariable() публичный Метод

Unregisters a global variable.
public UnregisterGlobalVariable ( ) : EvalContext
Результат EvalContext

UnregisterMember() публичный Метод

Unregisters member from specified types.
public UnregisterMember ( ) : EvalContext
Результат EvalContext

UnregisterStaticMember() публичный Метод

Unregisters static member from specified types.
public UnregisterStaticMember ( ) : EvalContext
Результат EvalContext

UnregisterType() публичный Метод

Unregisters specified types using Type.Name and Type.FullName as alias.
public UnregisterType ( ) : EvalContext
Результат EvalContext