MetalamaAPI documentationAspect APIMetalama.​Framework.​CodeIParameterDefault­Value
Open sandboxFocus

IParameter.DefaultValue Property

DefaultValue

Declaration
Nullable<TypedConstant> DefaultValue { get; }
Property Value
Type Description
System.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
System.InvalidOperationException

The parameter has no default value.