Metalama//API Documentation/Aspect API/Metalama.​Framework.​Code.​Declaration­Builders/IParameter­Builder/Default­Value
Open sandboxFocus

Property DefaultValue

DefaultValue

Declaration
Nullable<TypedConstant> DefaultValue { get; set; }
Property Value
Type Description
Nullable<TypedConstant>
Remarks

Gets or sets the default value of the parameter, or default if the parameter type is a struct and the default value of the parameter is the default value of the struct type.

Exceptions
Type Condition
InvalidOperationException

The parameter has no default value.