ParameterInfo.RawDefaultValue Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value indicating the default value if the parameter has a default value.
public:
virtual property System::Object ^ RawDefaultValue { System::Object ^ get(); };
public virtual object? RawDefaultValue { get; }
public virtual object RawDefaultValue { get; }
member this.RawDefaultValue : obj
Public Overridable ReadOnly Property RawDefaultValue As Object
Property Value
The default value of the parameter, or Value if the parameter has no default value.
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 ParameterInfo array, first get the method or the constructor and then call the MethodBase.GetParameters method.