Myslik.Utils.ScriptEngine.Parse C# (CSharp) Метод

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
        public ParsedScript Parse(string text)
        {
            if (text == null)
                throw new ArgumentNullException("text");

            return (ParsedScript)Parse(text, false);
        }

Same methods

ScriptEngine::Parse ( string text, bool expression ) : object

Usage Example

Пример #1
0
        public Compiler()
        {
            _engine = new ScriptEngine("jscript");

            Debug.Assert(!string.IsNullOrWhiteSpace(LoadResource("compiler.js")));

            _vm = _engine.Parse(LoadResource("compiler.js"));
        }