Click or drag to resize

CompileInfo Class

The information about the location of the compiler output - assembly and pdb file.
Inheritance Hierarchy
SystemObject
  CSScriptLibCompileInfo

Namespace:  CSScriptLib
Assembly:  CSScriptLib (in CSScriptLib.dll) Version: 1.3.2.0
Syntax
C#
public class CompileInfo

The CompileInfo type exposes the following members.

Constructors
  NameDescription
Public methodCompileInfo
Initializes a new instance of the CompileInfo class
Top
Properties
  NameDescription
Public propertyAssemblyFile
The assembly file path. If not specified it will be composed as "<RootClass>.dll".
Public propertyPdbFile
The PDB file path.

Even if the this value is specified the file will not be generated unless EvaluatorConfig.DebugBuild is set to true.

Public propertyPreferLoadingFromFile
Gets or sets a value indicating whether to prefer loading compiled script from the assembly file when it is available.
Public propertyRootClass
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".

Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also