Table of Contents

Class SerializedAssemblyReference

Namespace
AsmResolver.DotNet.Serialized
Assembly
AsmResolver.DotNet.dll

Represents a lazily initialized implementation of AssemblyReference that is read from a .NET metadata image.

public class SerializedAssemblyReference : AssemblyReference, IResolutionScope, IOwnedCollectionElement<ModuleDefinition>, IImplementation, IFullNameProvider, INameProvider, IModuleProvider, IHasCustomAttribute, IMetadataMember, IImportable
Inheritance
SerializedAssemblyReference
Implements
Inherited Members
Extension Methods

Constructors

SerializedAssemblyReference(ModuleReaderContext, MetadataToken, in AssemblyReferenceRow)

Creates an assembly reference from an assembly reference metadata row.

public SerializedAssemblyReference(ModuleReaderContext context, MetadataToken token, in AssemblyReferenceRow row)

Parameters

context ModuleReaderContext

The reader context.

token MetadataToken

The token to initialize the reference for.

row AssemblyReferenceRow

The metadata table row to base the assembly reference on.

Methods

GetCulture()

Obtains the locale string of the assembly definition.

protected override Utf8String? GetCulture()

Returns

Utf8String

The locale string.

Remarks

This method is called upon initializing the Culture property.

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 assembly definition.

protected override Utf8String? GetName()

Returns

Utf8String

The name.

Remarks

This method is called upon initializing the Name property.

GetPublicKeyOrToken()

Obtains the public key or token of the assembly reference.

protected override byte[]? GetPublicKeyOrToken()

Returns

byte[]

The public key or token.

Remarks

This method is called upon initializing the PublicKeyOrToken property.