C# 클래스 Myslik.Utils.ScriptEngine

Represents a Windows Script Engine such as JScript, VBScript, etc.
상속: IDisposable
파일 보기 프로젝트 열기: Myslik/csharp-ember-handlebars 1 사용 예제들

공개 메소드들

메소드 설명
Eval ( string expression ) : object

Evaluates an expression.

Eval ( string language, string expression ) : object

Evaluates an expression using the specified language.

Parse ( string text ) : ParsedScript

Parses the specified text and returns an object that can be used for evaluation.

ScriptEngine ( string language ) : System

Initializes a new instance of the ScriptEngine class.

SetNamedItem ( string name, object value ) : void

Adds the name of a root-level item to the scripting engine's name space.

비공개 메소드들

메소드 설명
IDisposable ( ) : void
Parse ( string text, bool expression ) : object

메소드 상세

Eval() 공개 메소드

Evaluates an expression.
public Eval ( string expression ) : object
expression string The expression. May not be null.
리턴 object

Eval() 공개 정적인 메소드

Evaluates an expression using the specified language.
public static Eval ( string language, string expression ) : object
language string The language.
expression string The expression. May not be null.
리턴 object

Parse() 공개 메소드

Parses the specified text and returns an object that can be used for evaluation.
public Parse ( string text ) : ParsedScript
text string The text to parse.
리턴 ParsedScript

ScriptEngine() 공개 메소드

Initializes a new instance of the ScriptEngine class.
public ScriptEngine ( string language ) : System
language string The scripting language. Standard Windows Script engines names are 'jscript' or 'vbscript'.
리턴 System

SetNamedItem() 공개 메소드

Adds the name of a root-level item to the scripting engine's name space.
public SetNamedItem ( string name, object value ) : void
name string The name. May not be null.
value object The value. It must be a ComVisible object.
리턴 void