Table of Contents

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

attributes CallingConventionAttributes

The 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

attributes CallingConventionAttributes

The attributes.

typeArguments IEnumerable<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

attributes CallingConventionAttributes

The attributes.

capacity int

The 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

typeArguments TypeSignature[]

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

typeArguments IEnumerable<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

IList<TypeSignature>

Methods

ImportWith(ReferenceImporter)

Imports the generic method instantiation signature using the provided reference importer object.

public GenericInstanceMethodSignature ImportWith(ReferenceImporter importer)

Parameters

importer ReferenceImporter

The 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

importer ReferenceImporter

The 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

module ModuleDefinition

The module that is supposed to import the member.

Returns

bool

true if the descriptor of the member is fully imported by the module, false otherwise.

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

context BlobSerializationContext