Class CompilationResult
- Namespace
- Ecng.Compilation
- Assembly
- Ecng.Compilation.dll
Represents the result of a compilation process including any compilation errors.
public abstract class CompilationResult
- Inheritance
-
CompilationResult
- Derived
- Inherited Members
- Extension Methods
Constructors
CompilationResult(IEnumerable<CompilationError>)
Represents the result of a compilation process including any compilation errors.
protected CompilationResult(IEnumerable<CompilationError> errors)
Parameters
errors
IEnumerable<CompilationError>A collection of compilation errors.
Properties
Errors
Gets the collection of compilation errors.
public IEnumerable<CompilationError> Errors { get; }
Property Value
Methods
GetAssembly(ICompilerContext)
Loads the compiled assembly using the provided compiler context.
public abstract Assembly GetAssembly(ICompilerContext context)
Parameters
context
ICompilerContextThe 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.