Table of Contents

Method FromScriptCode

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

FromScriptCode(string)

Loads script source from the script code.

public virtual IScriptSource FromScriptCode(string scriptCode)

Parameters

scriptCode string

Script code to execute.

Returns

IScriptSource

Modified IScrptSource instance

FromScriptCode(string, string)

Loads script source from the script code.

public virtual 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