class ParameterInfo

in global :: System . Reflection

Discovers the attributes of a parameter and provides access to parameter metadata.


public IEnumerable<CustomAttributeData> CustomAttributes { get; }

Gets a collection that contains this parameter's custom attributes.

  • Returns A collection that contains this parameter's custom attributes.

public object DefaultValue { get; }

Gets a value indicating the default value if the parameter has a default value.

  • Returns The default value of the parameter, or if the parameter has no default value.

public bool HasDefaultValue { get; }

Gets a value that indicates whether this parameter has a default value.

  • Returns if this parameter has a default value; otherwise, .

public bool IsIn { get; }

Gets a value indicating whether this is an input parameter.

  • Returns if the parameter is an input parameter; otherwise, .

public bool IsLcid { get; }

Gets a value indicating whether this parameter is a locale identifier (lcid).

  • Returns if the parameter is a locale identifier; otherwise, .

public bool IsOptional { get; }

Gets a value indicating whether this parameter is optional.

  • Returns if the parameter is optional; otherwise, .

public bool IsOut { get; }

Gets a value indicating whether this is an output parameter.

  • Returns if the parameter is an output parameter; otherwise, .

public bool IsRetval { get; }

Gets a value indicating whether this is a parameter.

  • Returns if the parameter is a ; otherwise, .

public MemberInfo Member { get; }

Gets a value indicating the member in which the parameter is implemented.

  • Returns The member which implanted the parameter represented by this .

public int MetadataToken { get; }

Gets a value that identifies this parameter in metadata.

  • Returns A value which, in combination with the module, uniquely identifies this parameter in metadata.

public string Name { get; }

Gets the name of the parameter.

  • Returns The simple name of this parameter.

public Type ParameterType { get; }

Gets the of this parameter.

  • Returns The object that represents the of this parameter.

public int Position { get; }

Gets the zero-based position of the parameter in the formal parameter list.

  • Returns An integer representing the position this parameter occupies in the parameter list.

public object RawDefaultValue { get; }

Gets a value indicating the default value if the parameter has a default value.

  • Returns The default value of the parameter, or if the parameter has no default value.