Class SerializedModuleReference
- Namespace
- AsmResolver.DotNet.Serialized
- Assembly
- AsmResolver.DotNet.dll
Represents a lazily initialized implementation of ModuleReference that is read from a .NET metadata image.
public class SerializedModuleReference : ModuleReference, IResolutionScope, IImportable, IMemberRefParent, INameProvider, IModuleProvider, IHasCustomAttribute, IMetadataMember, IOwnedCollectionElement<ModuleDefinition>
- Inheritance
-
SerializedModuleReference
- Implements
- Inherited Members
- Extension Methods
Constructors
SerializedModuleReference(ModuleReaderContext, MetadataToken, in ModuleReferenceRow)
Creates a module reference from a module reference metadata row.
public SerializedModuleReference(ModuleReaderContext context, MetadataToken token, in ModuleReferenceRow row)
Parameters
context
ModuleReaderContextThe reader context.
token
MetadataTokenThe token to initialize the module reference for.
row
ModuleReferenceRowThe metadata table row to base the module reference. on.
Methods
GetCustomAttributes()
Obtains the list of custom attributes assigned to the member.
protected override IList<CustomAttribute> GetCustomAttributes()
Returns
- IList<CustomAttribute>
The attributes
Remarks
This method is called upon initialization of the CustomAttributes property.
GetName()
Obtains the name of the module.
protected override Utf8String? GetName()
Returns
- Utf8String
The name.
Remarks
This method is called upon initialization of the Name property.