Table of Contents

Namespace Ecng.Compilation

Classes

AssemblyCompilationResult

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

AssemblyLoadContextExtensions

Provides extension methods for AssemblyLoadContext related to compilation operations.

AssemblyLoadContextTracker

Provides tracking functionality for AssemblyLoadContext instances when loading assemblies dynamically. Implements ICompilerContext and manages unloading of previous contexts when loading a new assembly.

AssemblyReference

The reference to the .NET assembly.

BaseCodeReference

Provides a base implementation for a code reference with persistence support.

CompilationError

Represents a compilation error with details about its location and type.

CompilationResult

Represents the result of a compilation process including any compilation errors.

CompilerProvider

Represents a provider for compilers.

FileCompilerCache

A file-based implementation of InMemoryCompilerCache that persists cached assemblies to disk.

ICompilerExtensions

Provides extension methods for the ICompiler interface and compilation results.

InMemoryCompilerCache

An in-memory implementation of ICompilerCache that stores compiled assemblies in memory.

NuGetReference

Represents a NuGet package reference with package identifier and version.

Interfaces

ICodeReference

Represents a reference to code that supports persistence.

ICompiler

Defines the contract for a compiler that supports compiling source files into an assembly.

ICompilerCache

Defines methods for caching compiled assemblies.

ICompilerContext

Represents a context for compilation operations. Provides functionality to load assemblies from binary data.

IFileReference

Provides an abstraction for retrieving file content as a string.

Enums

CompilationErrorTypes

Represents the type of a compilation error.