![]() | CompileInfo Class |
Namespace: CSScriptLib
public class CompileInfo
The CompileInfo type exposes the following members.
Name | Description | |
---|---|---|
![]() | CompileInfo | Initializes a new instance of the CompileInfo class |
Name | Description | |
---|---|---|
![]() | AssemblyFile |
The assembly file path. If not specified it will be composed as "<RootClass>.dll".
|
![]() | PdbFile |
The PDB file path.
Even if the this value is specified the file will not be generated unless EvaluatorConfig.DebugBuild is set to true. |
![]() | PreferLoadingFromFile |
Gets or sets a value indicating whether to prefer loading compiled script from the assembly file when
it is available.
|
![]() | RootClass |
Gets or sets the root class name.
This setting is required as Roslyn cannot produce compiled scripts with the user script class defined as a top level class. Thus all user defined classes are in fact nested classes with the root class named by Roslyn as "Submission#0". This leads to the complications when user wants to reference script class in another script. Specifically because C# treats "Submission#0" as an illegal class name. C# helps the situation by allowing user specified root name RootClass, which is by default is "css_root". |
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.) |
![]() | 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.) |