C# Class Z.Expressions.EvalContext

Afficher le fichier Open project: zzzprojects/Eval-Expression.NET Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

Clone() public méthode

Makes a shallow copy of current EvalContext.
public Clone ( ) : EvalContext
Résultat EvalContext

Compile() public méthode

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.
Résultat object>.Func

Compile() public méthode

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.
Résultat object>.Func

Compile() public méthode

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.
Résultat object>.Func

Compile() public méthode

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.
Résultat Func

Compile() public méthode

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.
Résultat Func

Compile() public méthode

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.
Résultat Func

Compile() public méthode

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.
Résultat Func

Compile() public méthode

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.
Résultat Func

Compile() public méthode

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.
Résultat Func

Compile() public méthode

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.
Résultat Func

Compile() public méthode

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.
Résultat Func

Compile() public méthode

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.
Résultat object>.Func

Compile() public méthode

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.
Résultat Func

CompileAsync() public méthode

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.
Résultat object>>.Task

CompileAsync() public méthode

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.
Résultat object>>.Task

CompileAsync() public méthode

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.
Résultat object>>.Task

CompileAsync() public méthode

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.
Résultat Task>

CompileAsync() public méthode

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.
Résultat Task>

CompileAsync() public méthode

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.
Résultat Task>

CompileAsync() public méthode

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.
Résultat Task>

CompileAsync() public méthode

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.
Résultat Task>

CompileAsync() public méthode

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.
Résultat Task>

CompileAsync() public méthode

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.
Résultat Task>

CompileAsync() public méthode

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.
Résultat Task>

CompileAsync() public méthode

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.
Résultat object>>.Task

CompileAsync() public méthode

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.
Résultat Task>

EvalContext() public méthode

public EvalContext ( ) : System
Résultat System

ExecuteAsync() public méthode

Compile and evaluate the code or expression and return the result.
public ExecuteAsync ( string code ) : Task
code string The code or expression to evaluate.
Résultat Task

ExecuteAsync() public méthode

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.
Résultat Task

RegisterAlias() public méthode

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.
Résultat EvalContext

RegisterAssembly() public méthode

Registers all types from all specified assemblies.
public RegisterAssembly ( ) : EvalContext
Résultat EvalContext

RegisterDefaultAlias() public méthode

Registers default alias (Extension Methods, Names, Static Members, Types and Values).
public RegisterDefaultAlias ( ) : void
Résultat void

RegisterDefaultAliasSafe() public méthode

Registers default alias (Extension Methods, Names, Static Members, Types and Values).
public RegisterDefaultAliasSafe ( ) : void
Résultat void

RegisterDefaultAliasUnsafe() public méthode

Registers default alias (Extension Methods, Names, Static Members, Types and Values).
public RegisterDefaultAliasUnsafe ( ) : void
Résultat void

RegisterDomainAssemblies() public méthode

Registers all types from all domain assemblies.
public RegisterDomainAssemblies ( ) : EvalContext
Résultat EvalContext

RegisterExtensionMethod() public méthode

Registers all extension methods from specified types.
public RegisterExtensionMethod ( ) : EvalContext
Résultat EvalContext

RegisterGlobalConstant() public méthode

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.
Résultat EvalContext

RegisterGlobalVariable() public méthode

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.
Résultat EvalContext

RegisterMember() public méthode

public RegisterMember ( ) : EvalContext
Résultat EvalContext

RegisterStaticMember() public méthode

Registers static member from specified types.
public RegisterStaticMember ( ) : EvalContext
Résultat EvalContext

RegisterType() public méthode

Registers specified types using Type.Name and Type.FullName as alias.
public RegisterType ( ) : EvalContext
Résultat EvalContext

UnregisterAlias() public méthode

Unregisters all alias for a variable, constant or type name.
public UnregisterAlias ( ) : EvalContext
Résultat EvalContext

UnregisterAll() public méthode

Unregisters all kind of alias (Extension Methods, Names, Static Members, Types and Values).
public UnregisterAll ( ) : EvalContext
Résultat EvalContext

UnregisterAssembly() public méthode

Unregisters all types from all specified assemblies.
public UnregisterAssembly ( ) : EvalContext
Résultat EvalContext

UnregisterExtensionMethod() public méthode

Unregisters all extension methods from the specified types.
public UnregisterExtensionMethod ( ) : EvalContext
Résultat EvalContext

UnregisterGlobalConstant() public méthode

Unregisters a global constant.
public UnregisterGlobalConstant ( ) : EvalContext
Résultat EvalContext

UnregisterGlobalVariable() public méthode

Unregisters a global variable.
public UnregisterGlobalVariable ( ) : EvalContext
Résultat EvalContext

UnregisterMember() public méthode

Unregisters member from specified types.
public UnregisterMember ( ) : EvalContext
Résultat EvalContext

UnregisterStaticMember() public méthode

Unregisters static member from specified types.
public UnregisterStaticMember ( ) : EvalContext
Résultat EvalContext

UnregisterType() public méthode

Unregisters specified types using Type.Name and Type.FullName as alias.
public UnregisterType ( ) : EvalContext
Résultat EvalContext