Table of Contents

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 IMetadataMember

The member that was not imported.

MemberNotImportedException(IMetadataMember, object?)

Creates a new instance of the MemberNotImportedException.

public MemberNotImportedException(IMetadataMember member, object? diagnosticSource)

Parameters

member IMetadataMember

The member that was not imported.

diagnosticSource object

The source object that references the member.

Properties

DiagnosticSource

When available, gets the source object that references the member.

public object? DiagnosticSource { get; }

Property Value

object

Member

Gets the member that was not imported.

public IMetadataMember Member { get; }

Property Value

IMetadataMember