Class MemberNotImportedException
- Namespace
- AsmResolver.DotNet.Builder.Metadata
- Assembly
- AsmResolver.DotNet.dll
Represents the exception that occurs when an external metadata member was used in a .NET module, but was not imported in said module.
public class MemberNotImportedException : MetadataBuilderException, ISerializable
- Inheritance
-
MemberNotImportedException
- Implements
- Inherited Members
Constructors
MemberNotImportedException(IMetadataMember)
Creates a new instance of the MemberNotImportedException.
public MemberNotImportedException(IMetadataMember member)
Parameters
member
IMetadataMemberThe member that was not imported.
MemberNotImportedException(IMetadataMember, object?)
Creates a new instance of the MemberNotImportedException.
public MemberNotImportedException(IMetadataMember member, object? diagnosticSource)
Parameters
member
IMetadataMemberThe member that was not imported.
diagnosticSource
objectThe source object that references the member.
Properties
DiagnosticSource
When available, gets the source object that references the member.
public object? DiagnosticSource { get; }
Property Value
Member
Gets the member that was not imported.
public IMetadataMember Member { get; }