C# Class Nexus.Client.ModManagement.Scripting.CSharpScript.CSharpScriptCompiler

Compiles C# scripts into executable assemblies.
Exibir arquivo Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Public Methods

Method Description
Compile ( string p_strCode, Type p_tpeBaseScriptType, CompilerErrorCollection &p_cecErrors ) : byte[]

Compiles the given code into an assembly.

The compiled assembly is not loaded into the current app domain.

Method Details

Compile() public method

Compiles the given code into an assembly.
The compiled assembly is not loaded into the current app domain.
public Compile ( string p_strCode, Type p_tpeBaseScriptType, CompilerErrorCollection &p_cecErrors ) : byte[]
p_strCode string The C# code to compile
p_tpeBaseScriptType System.Type The type of the base script from which the class in the code derives.
p_cecErrors System.CodeDom.Compiler.CompilerErrorCollection The collection in which to return any compilation errors.
return byte[]