Table of Contents

Class SerializedManifestResource

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

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

public class SerializedManifestResource : ManifestResource, INameProvider, IHasCustomAttribute, IMetadataMember, IOwnedCollectionElement<ModuleDefinition>
Inheritance
SerializedManifestResource
Implements
Inherited Members
Extension Methods

Constructors

SerializedManifestResource(ModuleReaderContext, MetadataToken, in ManifestResourceRow)

Creates a manifest resource from a manifest resource metadata row.

public SerializedManifestResource(ModuleReaderContext context, MetadataToken token, in ManifestResourceRow row)

Parameters

context ModuleReaderContext

The module that contains the resource.

token MetadataToken

The token to initialize the resource for.

row ManifestResourceRow

The metadata table row to base the resource \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.

GetEmbeddedDataSegment()

When the resource is embedded, obtains the contents of the manifest resource.

protected override ISegment? GetEmbeddedDataSegment()

Returns

ISegment

The data, or null if the resource is not embedded.

GetImplementation()

Obtains the implementation of this resource.

protected override IImplementation? GetImplementation()

Returns

IImplementation

The implementation.

Remarks

This method is called upon initialization of the Implementation property.

GetName()

Obtains the name of the manifest resource.

protected override Utf8String? GetName()

Returns

Utf8String

The name.

Remarks

This method is called upon initialization of the Name property.