Class StandAloneSignature
- Namespace
- AsmResolver.DotNet
- Assembly
- AsmResolver.DotNet.dll
Represents a blob signature that can be referenced by metadata token.
public class StandAloneSignature : MetadataMember, IHasCustomAttribute, IMetadataMember
- Inheritance
-
StandAloneSignature
- Implements
- Derived
- Inherited Members
- Extension Methods
Remarks
Stand-alone signatures are often used by the runtime for referencing local variable signatures, or serve as an operand for calli instructions.
Constructors
StandAloneSignature(BlobSignature)
Wraps a blob signature into a new stand-alone signature.
public StandAloneSignature(BlobSignature signature)
Parameters
signature
BlobSignatureThe signature to assign a metadata token.
StandAloneSignature(MetadataToken)
Initializes a new stand-alone signature.
protected StandAloneSignature(MetadataToken token)
Parameters
token
MetadataTokenThe token of the stand-alone signature.
Properties
CustomAttributes
Gets a collection of custom attributes assigned to this member.
public IList<CustomAttribute> CustomAttributes { get; }
Property Value
Signature
Gets or sets the signature that was referenced by this metadata member.
public BlobSignature? Signature { get; set; }
Property Value
Methods
GetCustomAttributes()
Obtains the list of custom attributes assigned to the member.
protected virtual IList<CustomAttribute> GetCustomAttributes()
Returns
- IList<CustomAttribute>
The attributes
Remarks
This method is called upon initialization of the CustomAttributes property.
GetSignature()
Obtains the signature referenced by this metadata member.
protected virtual CallingConventionSignature? GetSignature()
Returns
- CallingConventionSignature
The signature
Remarks
This method is called upon initialization of the Signature property.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.