MetalamaAPI documentationPatterns APIMetalama.​Patterns.​ContractsContract­OptionsWarn­On­Not­Nullable­On­Nullable
Open sandboxFocus

ContractOptions.WarnOnNotNullableOnNullable Property

WarnOnNotNullableOnNullable

Gets or sets a value indicating whether the LAMA5002 warning should be reported when attempting to add a NotNullAttribute or RequiredAttribute contract on a nullable parameter, field or property. This option is true by default.

Declaration
public Nullable<bool> WarnOnNotNullableOnNullable { get; set; }
Property Value
Type Description
Nullable<Boolean>