AssemblyCompilationResult

Ecng.Compilation

Represents a compilation result that includes a binary representation of an assembly.

Herda de: CompilationResult

Construtores

AssemblyCompilationResult
public AssemblyCompilationResult(IEnumerable<CompilationError> errors, byte[] assemblyBody)
assemblyCompilationResult = AssemblyCompilationResult(errors, assemblyBody)

Represents a compilation result that includes a binary representation of an assembly.

errors
A collection of compilation errors.
assemblyBody
The binary content of the compiled assembly.

Propriedades

AssemblyBody
public byte[] AssemblyBody { get; }
value = assemblyCompilationResult.AssemblyBody

Gets the binary content of the compiled assembly.

Métodos

GetAssembly
public override Assembly GetAssembly(ICompilerContext context)
result = assemblyCompilationResult.GetAssembly(context)

Loads the compiled assembly using the provided compiler context.

context
The compiler context used to load the assembly.

Retorna: The loaded assembly, or null if the assembly body is not available.