System.Reflection.ParameterInfo.Name Property

Gets the name of the parameter.

Syntax

public virtual string Name { get; }

Value

A string that contains the name of the parameter reflected by the current instance.

Remarks

This property utilizes the protected ParameterInfo.NameImpl field, and depends on an optional metadata flag that might not be available in all compilers.

To get the System.Reflection.ParameterInfo array, first get the method or the constructor and then call the MethodBase.GetParameters method.

Note:

If this System.Reflection.ParameterInfo represents a return value (that is, if it was obtained by using the MethodInfo.ReturnParameter property), this property will be null.

Requirements

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0