Table of Contents

Class SerializedTypeSpecification

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

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

public class SerializedTypeSpecification : TypeSpecification, ITypeDefOrRef, ITypeDescriptor, IMemberDescriptor, IFullNameProvider, IImportable, IMemberRefParent, INameProvider, IModuleProvider, IHasCustomAttribute, IMetadataMember
Inheritance
SerializedTypeSpecification
Implements
Inherited Members
Extension Methods

Constructors

SerializedTypeSpecification(ModuleReaderContext, MetadataToken, in TypeSpecificationRow)

Creates a type specification from a type metadata row.

public SerializedTypeSpecification(ModuleReaderContext context, MetadataToken token, in TypeSpecificationRow row)

Parameters

context ModuleReaderContext

The reader context.

token MetadataToken

The token to initialize the type for.

row TypeSpecificationRow

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

GetSignature()

Obtains the signature the type specification is referencing.

protected override TypeSignature? GetSignature()

Returns

TypeSignature

The signature.

Remarks

This method is called upon initialization of the Signature property.