DirectOutputR1
DirectOutput framework R1 for virtual pinball cabinets.
Go to:
Overview 
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros Pages
DirectOutput.Scripting.Script Class Reference

Contains information on a loaded and compiled C# script file. More...

Public Member Functions

 Script (string ScriptFilename, bool ThrowExceptions=false)
 Initializes a new instance of the Script class.
Loads and compiles the specified script file. More...
 
 Script (FileInfo ScriptFile, bool ThrowExceptions=false)
 Initializes a new instance of the Script class.
Loads and compiles the specified script file. More...
 
 Script ()
 Initializes a new instance of the Script class. More...
 

Properties

FileInfo File [get, set]
 FileInfo object for the Scriptfile. More...
 
bool Compiled [get]
 Indicates whether the script file has been successfully loaded and compiled. More...
 
Exception CompilationException [get, set]
 If a error occurs during compilation, this property contains the Exception which was thrown. More...
 
Assembly Assembly [get, set]
 Holds a reference to the Assembly for the loaded script file. More...
 

Detailed Description

Contains information on a loaded and compiled C# script file.

Definition at line 12 of file Script.cs.

Constructor & Destructor Documentation

DirectOutput.Scripting.Script.Script ( string  ScriptFilename,
bool  ThrowExceptions = false 
)
inline

Initializes a new instance of the Script class.
Loads and compiles the specified script file.

Parameters
ScriptFilenameThe script filename.
ThrowExceptionsIf set to true a exception will be thrown, if a error occurs when loading and compiling the script file.
Exceptions
System.ExceptionA error occured while loading or loading the script file {0}.

Definition at line 50 of file Script.cs.

DirectOutput.Scripting.Script.Script ( FileInfo  ScriptFile,
bool  ThrowExceptions = false 
)
inline

Initializes a new instance of the Script class.
Loads and compiles the specified script file.

Parameters
ScriptFileThe FileInfo object for the script file.
ThrowExceptionsIf set to true a exception will be thrown, if a error occurs when loading and compiling the script file.
Exceptions
System.ExceptionA error occured while loading or loading the script file {0}.

Definition at line 59 of file Script.cs.

DirectOutput.Scripting.Script.Script ( )
inline

Initializes a new instance of the Script class.

Definition at line 88 of file Script.cs.

Property Documentation

Assembly DirectOutput.Scripting.Script.Assembly
getset

Holds a reference to the Assembly for the loaded script file.

Definition at line 40 of file Script.cs.

Exception DirectOutput.Scripting.Script.CompilationException
getset

If a error occurs during compilation, this property contains the Exception which was thrown.

Definition at line 34 of file Script.cs.

bool DirectOutput.Scripting.Script.Compiled
get

Indicates whether the script file has been successfully loaded and compiled.

Definition at line 24 of file Script.cs.

FileInfo DirectOutput.Scripting.Script.File
getset

FileInfo object for the Scriptfile.

Definition at line 17 of file Script.cs.


The documentation for this class was generated from the following file: