Class SerializedImplementationMap
- Namespace
- AsmResolver.DotNet.Serialized
- Assembly
- AsmResolver.DotNet.dll
Represents a lazily initialized implementation of ImplementationMap that is read from a .NET metadata image.
public class SerializedImplementationMap : ImplementationMap, IMetadataMember, IFullNameProvider, INameProvider
- Inheritance
-
SerializedImplementationMap
- Implements
- Inherited Members
Constructors
SerializedImplementationMap(ModuleReaderContext, MetadataToken, in ImplementationMapRow)
Creates a member reference from an implementation map metadata row.
public SerializedImplementationMap(ModuleReaderContext context, MetadataToken token, in ImplementationMapRow row)
Parameters
context
ModuleReaderContextThe reader context.
token
MetadataTokenThe token to initialize the mapping for.
row
ImplementationMapRowThe metadata table row to base the mapping on.
Methods
GetMemberForwarded()
Obtains the owner of the P/Invoke implementation mapping.
protected override IMemberForwarded? GetMemberForwarded()
Returns
- IMemberForwarded
The owner.
Remarks
This method is called upon initialization of the MemberForwarded property.
GetName()
Obtains the name of the imported member.
protected override Utf8String? GetName()
Returns
- Utf8String
The name.
Remarks
This method is called upon initialization of the Name property.
GetScope()
Obtains the scope that declares the imported member.
protected override ModuleReference? GetScope()
Returns
- ModuleReference
The scope.
Remarks
This method is called upon initialization of the Scope property.