Class GenericInstanceMethodSignature
- Namespace
- AsmResolver.DotNet.Signatures
- Assembly
- AsmResolver.DotNet.dll
Represents an instantiation of a generic method.
public class GenericInstanceMethodSignature : CallingConventionSignature, IImportable, IGenericArgumentsProvider
- Inheritance
-
GenericInstanceMethodSignature
- Implements
- Inherited Members
Constructors
GenericInstanceMethodSignature(CallingConventionAttributes)
Creates a new instantiation signature for a generic method.
public GenericInstanceMethodSignature(CallingConventionAttributes attributes)
Parameters
attributesCallingConventionAttributesThe attributes.
GenericInstanceMethodSignature(CallingConventionAttributes, IEnumerable<TypeSignature>)
Creates a new instantiation signature for a generic method with the provided type arguments.
public GenericInstanceMethodSignature(CallingConventionAttributes attributes, IEnumerable<TypeSignature> typeArguments)
Parameters
attributesCallingConventionAttributesThe attributes.
typeArgumentsIEnumerable<TypeSignature>The type arguments to use for the instantiation.
GenericInstanceMethodSignature(CallingConventionAttributes, int)
Creates a new instantiation signature for a generic method.
public GenericInstanceMethodSignature(CallingConventionAttributes attributes, int capacity)
Parameters
attributesCallingConventionAttributesThe attributes.
capacityintThe initial number of elements that the TypeArguments property can store.
GenericInstanceMethodSignature(params TypeSignature[])
Creates a new instantiation signature for a generic method with the provided type arguments.
public GenericInstanceMethodSignature(params TypeSignature[] typeArguments)
Parameters
typeArgumentsTypeSignature[]The type arguments to use for the instantiation.
GenericInstanceMethodSignature(IEnumerable<TypeSignature>)
Creates a new instantiation signature for a generic method with the provided type arguments.
public GenericInstanceMethodSignature(IEnumerable<TypeSignature> typeArguments)
Parameters
typeArgumentsIEnumerable<TypeSignature>The type arguments to use for the instantiation.
Properties
TypeArguments
Gets a collection of type arguments that are used to instantiate the method.
public IList<TypeSignature> TypeArguments { get; }
Property Value
Methods
ImportWith(ReferenceImporter)
Imports the generic method instantiation signature using the provided reference importer object.
public GenericInstanceMethodSignature ImportWith(ReferenceImporter importer)
Parameters
importerReferenceImporterThe reference importer to us.
Returns
- GenericInstanceMethodSignature
The imported signature.
ImportWithInternal(ReferenceImporter)
Imports the signature using the provided reference importer object.
protected override CallingConventionSignature ImportWithInternal(ReferenceImporter importer)
Parameters
importerReferenceImporterThe reference importer to us.
Returns
- CallingConventionSignature
The imported signature.
IsImportedInModule(ModuleDefinition)
Determines whether the descriptor of the member is fully imported in the provided module.
public override bool IsImportedInModule(ModuleDefinition module)
Parameters
moduleModuleDefinitionThe module that is supposed to import the member.
Returns
- bool
trueif the descriptor of the member is fully imported by the module,falseotherwise.
Remarks
This method verifies all references in the descriptor of the member only. It does not verify any additional data or contents (such as a method body) associated to the member.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
WriteContents(in BlobSerializationContext)
Serializes the blob (without extra data) to an output stream.
protected override void WriteContents(in BlobSerializationContext context)
Parameters
contextBlobSerializationContext