Class SerializedFileReference
- Namespace
- AsmResolver.DotNet.Serialized
- Assembly
- AsmResolver.DotNet.dll
Represents a lazily initialized implementation of FileReference that is read from a .NET metadata image.
public class SerializedFileReference : FileReference, IImplementation, IFullNameProvider, INameProvider, IModuleProvider, IHasCustomAttribute, IImportable, IManagedEntryPoint, IMetadataMember, IOwnedCollectionElement<ModuleDefinition>
- Inheritance
-
SerializedFileReference
- Implements
- Inherited Members
- Extension Methods
Constructors
SerializedFileReference(ModuleReaderContext, MetadataToken, in FileReferenceRow)
Creates a file reference from a file reference metadata row.
public SerializedFileReference(ModuleReaderContext context, MetadataToken token, in FileReferenceRow row)
Parameters
context
ModuleReaderContextThe reader context.
token
MetadataTokenThe token to initialize the reference for.
row
FileReferenceRowThe metadata table row to base the member 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.
GetHashValue()
Obtains the hash of the referenced file.
protected override byte[]? GetHashValue()
Returns
- byte[]
The hash.
Remarks
This method is called upon initializing the HashValue property.
GetName()
Obtains the name of the referenced file.
protected override Utf8String? GetName()
Returns
- Utf8String
The name.
Remarks
This method is called upon initializing the Name property.