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 bool? WarnOnNotNullableOnNullable { get; init; }
Property Value
Type Description
bool?