ParameterElement Class

A parameter of a method or a constructor.

public sealed class ParameterElement

Properties

NameDescription
AttributesGets the attributes applied to the parameter.
MethodGets the method that declares the parameter.
NameGets the name of the parameter, or an empty string when the metadata does not record it.
PositionGets the 0-based position of the parameter.
TypeGets the type of the parameter.

Gets the attributes applied to the parameter.

public IReadOnlyList<AttributeElement> Attributes { get; }

Gets the method that declares the parameter.

public MethodElement Method { get; }

Property value

MethodElement

Gets the name of the parameter, or an empty string when the metadata does not record it.

public string Name { get; }

Property value

string

Gets the 0-based position of the parameter.

public int Position { get; }

Property value

int

Gets the type of the parameter.

public TypeReference Type { get; }

Property value

TypeReference

Methods

NameDescription
ToString()Returns the type and the name of the parameter.

Returns the type and the name of the parameter.

public override string ToString()

Returns

string The type and the name of the parameter.