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
Index
Gets the index of the parameter.
public int Index { get; }
Property Value
MethodSignatureIndex
Gets the index of the parameter within the method's signature.
public int MethodSignatureIndex { get; }
Property Value
Name
Gets the name of the object.
public string Name { get; }
Property Value
ParameterType
Gets the type of the parameter.
public TypeSignature ParameterType { get; set; }
Property Value
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
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
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.