![]() | CSScript Class |
Namespace: CSScriptLib
public class CSScript
The CSScript type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() ![]() | Evaluator |
Global instance of the generic IEvaluator. This object is to be used for
dynamic loading of the C# code by "compiler as service" based on the
Engine value.
Generic IEvaluator interface provides a convenient way of accessing compilers without 'committing' to a specific compiler technology (e.g. Mono, Roslyn, CodeDOM). This may be required during troubleshooting or performance tuning. Switching between compilers can be done via global CSScript.Engine. ![]()
By default CSScript.Evaluator always returns a new instance of
IEvaluator. If this behavior is undesired change the evaluator access
policy by setting EvaluatorConfig.Access value.
|
![]() ![]() | EvaluatorConfig |
Gets the CSScript.EvaluatorConfig, which controls the way code evaluation is conducted at runtime.
|
![]() ![]() | RoslynEvaluator |
Global instance of RoslynEvaluator. This object is to be used for
dynamic loading of the C# code by using Roslyn "compiler as service".
If you need to use multiple instances of th evaluator then you will need to call IEvaluator.Clone(). |
Name | Description | |
---|---|---|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() ![]() | GetScriptTempDir |
Returns the name of the temporary folder in the CSSCRIPT subfolder of Path.GetTempPath().
Under certain circumstances it may be desirable to the use the alternative location for the CS-Script temporary files. In such cases use SetScriptTempDir() to set the alternative location. |
![]() ![]() | GetScriptTempFile |
Returns the name of the temporary file in the CSSCRIPT subfolder of Path.GetTempPath().
|
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
![]() ![]() | GlobalSettings |
Settings object containing runtime settings, which controls script compilation/execution.
This is Settings class essentially is a deserialized content of the CS-Script configuration file (css_config.xml).
|