C# 클래스 CSE.CsEval

Main class for evaluating expressions
파일 보기 프로젝트 열기: kcherr1/CSharp-Eval

공개 메소드들

메소드 설명
Eval ( CsEvaluator evaluator ) : object

Used for delayed or continuous evaluation. Use this when you want to parse the expression first and evaluate it later. Or for when the same expression needs to be evaluated several times. CsEvaluator instance comes from CsEval.GetEvaluator.

Eval ( object evalEnvironment, string data ) : object

Used for quick evaluation. Use this when the evaluation environment changes often. If the environment is consistent, set CsEval.EvalEnvironment then call CsEval.Eval(string data).

Eval ( string data ) : object

Used for normal evaluation.

GetEvaluator ( string data ) : CsEvaluator

Gets a CsEvaluator object for the expression

메소드 상세

Eval() 공개 정적인 메소드

Used for delayed or continuous evaluation. Use this when you want to parse the expression first and evaluate it later. Or for when the same expression needs to be evaluated several times. CsEvaluator instance comes from CsEval.GetEvaluator.
public static Eval ( CsEvaluator evaluator ) : object
evaluator CsEvaluator The CsEvaluator returned from a call to CsEval.GetEvaluator
리턴 object

Eval() 공개 정적인 메소드

Used for quick evaluation. Use this when the evaluation environment changes often. If the environment is consistent, set CsEval.EvalEnvironment then call CsEval.Eval(string data).
public static Eval ( object evalEnvironment, string data ) : object
evalEnvironment object /// Provides an evaluation environment for the given expression. /// The stored evaluation environment is temporarily replaced /// when the given statement is evaluated and restored afterwards. ///
data string The expression to evaluate
리턴 object

Eval() 공개 정적인 메소드

Used for normal evaluation.
public static Eval ( string data ) : object
data string The expression to evaluate
리턴 object

GetEvaluator() 공개 정적인 메소드

Gets a CsEvaluator object for the expression
public static GetEvaluator ( string data ) : CsEvaluator
data string Expression to evaluate
리턴 CsEvaluator