AssemblyCompilationResult

Ecng.Compilation

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

Наследует: CompilationResult

Конструкторы

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.

Свойства

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

Gets the binary content of the compiled assembly.

Методы

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.

Возвращает: The loaded assembly, or null if the assembly body is not available.