C# 클래스 Z.Expressions.EvalContext

파일 보기 프로젝트 열기: zzzprojects/Eval-Expression.NET 1 사용 예제들

공개 메소드들

메소드 설명
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