Table of Contents

Class SerializedPropertyDefinition

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

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

public class SerializedPropertyDefinition : PropertyDefinition, IHasSemantics, IMemberDefinition, IMemberDescriptor, IFullNameProvider, IImportable, IHasCustomAttribute, IHasConstant, IMetadataMember, INameProvider, IModuleProvider, IOwnedCollectionElement<TypeDefinition>
Inheritance
SerializedPropertyDefinition
Implements
Inherited Members
Extension Methods

Constructors

SerializedPropertyDefinition(ModuleReaderContext, MetadataToken, in PropertyDefinitionRow)

Creates a property definition from a property metadata row.

public SerializedPropertyDefinition(ModuleReaderContext context, MetadataToken token, in PropertyDefinitionRow row)

Parameters

context ModuleReaderContext

The reader context.

token MetadataToken

The token to initialize the property for.

row PropertyDefinitionRow

The metadata table row to base the property definition on.

Methods

GetConstant()

Obtains the constant value assigned to the property definition.

protected override Constant? GetConstant()

Returns

Constant

The constant.

Remarks

This method is called upon initialization of the Constant 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.

GetDeclaringType()

Obtains the declaring type of the property definition.

protected override TypeDefinition? GetDeclaringType()

Returns

TypeDefinition

The declaring type.

Remarks

This method is called upon initialization of the DeclaringType property.

GetName()

Obtains the name of the property definition.

protected override Utf8String? GetName()

Returns

Utf8String

The name.

Remarks

This method is called upon initialization of the Name property.

GetSemantics()

Obtains the methods associated to this property definition.

protected override IList<MethodSemantics> GetSemantics()

Returns

IList<MethodSemantics>

The method semantic objects.

Remarks

This method is called upon initialization of the Semantics property.

GetSignature()

Obtains the signature of the property definition.

protected override PropertySignature? GetSignature()

Returns

PropertySignature

The signature.

Remarks

This method is called upon initialization of the Signature property.