Interface IImportable
- Namespace
- AsmResolver.DotNet
- Assembly
- AsmResolver.DotNet.dll
Represents an entity in a .NET module that can be imported using the ReferenceImporter.
public interface IImportable
Methods
ImportWith(ReferenceImporter)
Imports the member using the provided reference importer object.
IImportable ImportWith(ReferenceImporter importer)
Parameters
importer
ReferenceImporterThe reference importer to use for importing the object.
Returns
- IImportable
The imported member.
IsImportedInModule(ModuleDefinition)
Determines whether the descriptor of the member is fully imported in the provided module.
bool IsImportedInModule(ModuleDefinition module)
Parameters
module
ModuleDefinitionThe module that is supposed to import the member.
Returns
- bool
true
if the descriptor of the member is fully imported by the module,false
otherwise.
Remarks
This method verifies all references in the descriptor of the member only. It does not verify any additional data or contents (such as a method body) associated to the member.