AssemblyCompilationResult
Ecng.Compilation
Represents a compilation result that includes a binary representation of an assembly.
Erbt von: CompilationResult
Konstruktoren
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.
Eigenschaften
AssemblyBody
public byte[] AssemblyBody { get; }
value = assemblyCompilationResult.AssemblyBody
Gets the binary content of the compiled assembly.
Methoden
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.
Rückgabe: The loaded assembly, or null if the assembly body is not available.