ParameterInfo::DefaultValue Property
Gets a value indicating the default value if the parameter has a default value.
Assembly: mscorlib (in mscorlib.dll)
This property is used only in the execution context. In the reflection-only context, use the RawDefaultValue property instead.
The default value is used when an actual value is not specified in the method call. A parameter can have a default value that is null. This is distinct from the case where a default value is not defined.
This method utilizes the DefaultValueImpl method.
To get the ParameterInfo array, first get the method or the constructor and then call MethodBase::GetParameters.
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1