Table of Contents

Class AssemblyCompilationResult

Namespace
Ecng.Compilation
Assembly
Ecng.Compilation.dll

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

public class AssemblyCompilationResult : CompilationResult
Inheritance
AssemblyCompilationResult
Inherited Members
Extension Methods

Constructors

AssemblyCompilationResult(IEnumerable<CompilationError>, byte[])

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

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

Parameters

errors IEnumerable<CompilationError>

A collection of compilation errors.

assemblyBody byte[]

The binary content of the compiled assembly.

Properties

AssemblyBody

Gets the binary content of the compiled assembly.

public byte[] AssemblyBody { get; }

Property Value

byte[]

Methods

GetAssembly(ICompilerContext)

Loads the compiled assembly using the provided compiler context.

public override Assembly GetAssembly(ICompilerContext context)

Parameters

context ICompilerContext

The compiler context used to load the assembly.

Returns

Assembly

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

Exceptions

ArgumentNullException

Thrown when context is null.