Table of Contents

Class ScriptSource

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

Provides methods and properties to work with script text, files or projects.

public class ScriptSource : IScriptSource, IScriptSourceBase, ICloneable, IEquatable<IScriptSource>
Inheritance
ScriptSource
Implements

Constructors

ScriptSource(IScriptRun)

Initializes a new instance of the ScriptSource class with specified script runner.

Properties

Changed

Gets or sets boolean value indicating if script source has been modified since last compilation.

Expression

Gets expression to evaluate.

Files

Gets list of files containing script to execute.

HasExpression

Returns boolean value indicating whether ScriptSource contains expression to evaluate.

HasProject

Returns boolean value indicating whether ScriptSource is associated with the project.

HasScriptCode

Returns boolean value indicating whether ScriptSource contains script code to execute.

HasScriptFile

Returns boolean value indicating whether ScriptSource contains script file to execute.

Language

Returns script programming language.

ProjectFileName

Gets a file name of the Visual Studio project containing script files to execute.

ProjectName

Gets or sets name of the Visual Studio project containing script files to execute.

RootNamespace

Gets or sets name of the Visual Studio project containing script files to execute.

ScriptCode

Gets script code to execute.

ScriptFile

Gets single script file to execute.

ScriptRun
SearchPaths

Gets list of search directories to look for source files.

Methods

Clone()

Creates a new object that is a copy of the current ScriptSource object.

Equals(IScriptSource)

Determines whether the specified IScriptSource is equal to the current ScriptSource.

FromExpression(string)

Loads script source from the expression.

FromScriptCode(string)

Loads script source from the script code.

FromScriptCode(string, string)

Loads script source from the script code.

FromScriptFile(string)

Loads script source from the script file.

FromScriptProject(string)

Loads script source from the Visual Studio project.

GetLastModifiedDate(string)

Gets file date time when script source was compiled.

HasBeenModified(IScriptSource)

Compares file modification dates against to other script source.

Reset()

Clears script source.

ResetProject()