IParameterSymbol.ExplicitDefaultValue Property

Definition

Returns the default value of the parameter.

public:
 property System::Object ^ ExplicitDefaultValue { System::Object ^ get(); };
public object ExplicitDefaultValue { get; }
public object? ExplicitDefaultValue { get; }
member this.ExplicitDefaultValue : obj
Public ReadOnly Property ExplicitDefaultValue As Object

Property Value

Exceptions

The parameter has no default value.

Remarks

Returns null if the parameter type is a struct and the default value of the parameter is the default value of the struct type.

Applies to