Code inspection: Unused nullable directive
This inspection reports a #nullable directive that does not change the current nullable context. Removing it makes the file easier to follow without affecting nullability analysis.
Example
#nullable enable
#nullable enable
class C
{
}
#nullable enable
class C
{
}
Quick-fix
The quick-fix removes the redundant #nullable directive.
13 April 2026