System.Reflection.ParameterInfo.RawDefaultValue Property

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

Syntax

public virtual object RawDefaultValue { get; }

Value

Documentation for this section has not yet been entered.

Remarks

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 System.Reflection.ParameterInfo array, first get the method or the constructor and then call the MethodBase.GetParameters method.

Requirements

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0