Class SerializedMethodSpecification
- Namespace
- AsmResolver.DotNet.Serialized
- Assembly
- AsmResolver.DotNet.dll
Represents a lazily initialized implementation of MethodSpecification that is read from a .NET metadata image.
public class SerializedMethodSpecification : MethodSpecification, IMethodDescriptor, IMemberDescriptor, IFullNameProvider, INameProvider, IModuleProvider, IImportable, IHasCustomAttribute, IMetadataMember
- Inheritance
-
SerializedMethodSpecification
- Implements
- Inherited Members
- Extension Methods
Constructors
SerializedMethodSpecification(ModuleReaderContext, MetadataToken, in MethodSpecificationRow)
Creates a method specification from a method specification metadata row.
public SerializedMethodSpecification(ModuleReaderContext context, MetadataToken token, in MethodSpecificationRow row)
Parameters
context
ModuleReaderContextThe reader context.
token
MetadataTokenThe token to initialize the method specification for.
row
MethodSpecificationRowThe metadata table row to base the method 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.
GetMethod()
Obtains the instantiated method.
protected override IMethodDefOrRef? GetMethod()
Returns
- IMethodDefOrRef
The method.
Remarks
This method is called upon initialization of the Method property.
GetSignature()
Obtains the method instantiation signature.
protected override GenericInstanceMethodSignature? GetSignature()
Returns
- GenericInstanceMethodSignature
The signature.
Remarks
This method is called upon initialization of the Signature property.