Interface IModuleReference
- Namespace
- ICSharpCode.Decompiler.TypeSystem
- Assembly
- ICSharpCode.Decompiler.dll
Interface used to help with construction of the type system.
public interface IModuleReference
Remarks
The type system is an immutable cyclic data structure: the compilation (ICompilation) has references to all modules, and each module has a reference back to the compilation.
Module references are used to solve this cyclic dependency: The compilation constructor accepts module references, and only the IModuleReference.Resolve() function can observe a partially-constructed compilation; but not any user code.
Methods
Resolve(ITypeResolveContext)
Resolves this metadata module.
IModule? Resolve(ITypeResolveContext context)
Parameters
context
ITypeResolveContext