Class SerializedMemberReference
- Namespace
- AsmResolver.DotNet.Serialized
- Assembly
- AsmResolver.DotNet.dll
Represents a lazily initialized implementation of MemberReference that is read from a .NET metadata image.
public class SerializedMemberReference : MemberReference, ICustomAttributeType, IMethodDefOrRef, IMethodDescriptor, IHasCustomAttribute, IFieldDescriptor, IMemberDescriptor, IFullNameProvider, INameProvider, IModuleProvider, IImportable, IMetadataMember
- Inheritance
-
SerializedMemberReference
- Implements
- Inherited Members
- Extension Methods
Constructors
SerializedMemberReference(ModuleReaderContext, MetadataToken, in MemberReferenceRow)
Creates a member reference from a member reference metadata row.
public SerializedMemberReference(ModuleReaderContext context, MetadataToken token, in MemberReferenceRow row)
Parameters
context
ModuleReaderContextThe reader context.
token
MetadataTokenThe token to initialize the reference for.
row
MemberReferenceRowThe metadata table row to base the member reference 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.
GetName()
Obtains the name of the member reference.
protected override Utf8String? GetName()
Returns
- Utf8String
The name.
Remarks
This method is called upon initialization of the Name property.
GetParent()
Obtains the parent of the member reference.
protected override IMemberRefParent? GetParent()
Returns
- IMemberRefParent
The parent
Remarks
This method is called upon initialization of the Parent property.
GetSignature()
Obtains the signature of the member reference.
protected override CallingConventionSignature? GetSignature()
Returns
- CallingConventionSignature
The signature
Remarks
This method is called upon initialization of the Signature property.