C# (CSharp) csscript Namespace

Classes

Name Description
AppArgs
AppInfo Repository for application specific data
AssemblyCache
AssemblyEnum
AssemblyExecutor
AssemblyInfo
AutoclassGenerator AutoclassGenerator to be used by external applications for generating the auto-class from the classless scripts
AutoclassPrecompiler
COM COM HR checker: just to make code more compact;
CSExecutionClient Wrapper class that runs CSExecutor within console application context.
CSExecutor CSExecutor is an class that implements execution of *.cs files.
CSExecutor.UniqueAssemblyLocations
CSExecutorClient Wrapper class that runs CSExecutor witin console application context.
CompilerException
DefaultPrecompiler The interface that all CS-Script precompilers need to implement.

The following is an example of the precompiler for sanitizing the script containing hashbang string on Linux.

public class HashBangPrecompiler : IPrecompiler { public bool Compile(ref string code, PrecompilationContext context) { if (code.StartsWith("#!")) { code = "//" + code; //comment the Linux hashbang line to keep C# compiler happy return true; } return false; } }
EncodingConverter
ExecuteOptions Application specific runtime settings
HelpProvider
HostConsole
InstallReference
InstallReferenceGuid
PrecompilationContext This class is a container for information related to the script precompilation.

It is used to pass an input information from the script engine to the precompiler instance as well as to pass back to the script engine some output information (e.g. added referenced assemblies)

.
Profiler
RemoteExecutor Invokes static method 'Main' from the assembly.
ScriptLauncherBuilder
Settings Settings is an class that holds CS-Script application settings.
SurrogateHostProcessRequiredException