ParameterInfo.RawDefaultValue Property
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Gets a value indicating the default value if the parameter has a default value.
Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
Public Overridable ReadOnly Property RawDefaultValue As Object
public virtual Object RawDefaultValue { get; }
Property Value
Type: System.Object
The default value of the parameter, or Value if the parameter has no default value.
Remarks
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 nulla null reference (Nothing in Visual Basic). 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.
Version Information
Silverlight
Supported in: 5, 4
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.