Table of Contents

Class Parameter

Namespace
AsmResolver.DotNet.Collections
Assembly
AsmResolver.DotNet.dll

Represents a single parameter of a method. This is a matching of a parameter definition and its parameter type defined in the associated method signature.

public class Parameter : INameProvider
Inheritance
Parameter
Implements
Inherited Members

Properties

Definition

Gets the associated definition of the parameter, if available.

public ParameterDefinition? Definition { get; }

Property Value

ParameterDefinition

Index

Gets the index of the parameter.

public int Index { get; }

Property Value

int

MethodSignatureIndex

Gets the index of the parameter within the method's signature.

public int MethodSignatureIndex { get; }

Property Value

int

Name

Gets the name of the object.

public string Name { get; }

Property Value

string

ParameterType

Gets the type of the parameter.

public TypeSignature ParameterType { get; set; }

Property Value

TypeSignature

Sequence

Gets the sequence number of the parameter, as used in the parameter definition list of the method definition.

public ushort Sequence { get; }

Property Value

ushort

Methods

GetOrCreateDefinition()

Creates a or returns the existing ParameterDefinition corresponding to this parameter. If a ParameterDefinition is created it is automatically added to the method definition.

public ParameterDefinition GetOrCreateDefinition()

Returns

ParameterDefinition

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.