ParameterInfo.HasDefaultValue Property

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

Namespace:  System.Reflection
Assembly:  mscorlib (in mscorlib.dll)

public virtual bool HasDefaultValue { get; }

Property Value

Type: System.Boolean
true if this parameter has a default value; otherwise, false.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2015 Microsoft