Export (0) Print
Expand All

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 virtual Object RawDefaultValue { get; }

Property Value

Type: System.Object
The default value of the parameter, or Value if the parameter has no default value.

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.

Silverlight

Supported in: 5, 4

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft