Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ParameterInfo::RawDefaultValue Property

 

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

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

public:
property Object^ RawDefaultValue {
	virtual Object^ get();
}

Property Value

Type: System::Object^

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

This property can be used in both the execution context and the reflection-only context.

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.

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

.NET Framework
Available since 2.0
Silverlight
Available since 4.0
Return to top
Show:
© 2017 Microsoft