Table of Contents

Method FromScriptCode

Namespace
Alternet.Scripter.TypeScript
Assembly
Alternet.Scripter.TypeScript.v9.dll

FromScriptCode(string)

When implemented by a class, loads script source from the script code.

IScriptSource FromScriptCode(string scriptCode)

Parameters

scriptCode string

Script code to execute.

Returns

IScriptSource

Modified IScrptSource instance

FromScriptCode(string, string)

When implemented by a class, loads script source from the script code.

IScriptSource FromScriptCode(string scriptCode, string fileName)

Parameters

scriptCode string

Script code to execute.

fileName string

Specifis name if the file containing script code.

Returns

IScriptSource

Modified IScrptSource instance