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.