Table of Contents

Class SerializedCustomAttribute

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

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

public class SerializedCustomAttribute : CustomAttribute, IMetadataMember, IOwnedCollectionElement<IHasCustomAttribute>
Inheritance
SerializedCustomAttribute
Implements
Inherited Members

Constructors

SerializedCustomAttribute(ModuleReaderContext, MetadataToken, in CustomAttributeRow)

Creates a custom attribute from a custom attribute metadata row.

public SerializedCustomAttribute(ModuleReaderContext context, MetadataToken token, in CustomAttributeRow row)

Parameters

context ModuleReaderContext

The reader context..

token MetadataToken

The token to initialize the custom attribute for.

row CustomAttributeRow

The metadata table row to base the custom attribute on.

Methods

GetConstructor()

Obtains the constructor of the attribute.

protected override ICustomAttributeType? GetConstructor()

Returns

ICustomAttributeType

The constructor

Remarks

This method is called upon initialization of the Constructor property.

GetParent()

Obtains the parent member of the attribute.

protected override IHasCustomAttribute? GetParent()

Returns

IHasCustomAttribute

The member

Remarks

This method is called upon initialization of the Parent property.

GetSignature()

Obtains the signature of the attribute.

protected override CustomAttributeSignature? GetSignature()

Returns

CustomAttributeSignature

The signature

Remarks

This method is called upon initialization of the Signature property.