Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Code / IParameter / Default­Value

Property DefaultValue

DefaultValue

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

Gets 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.