Skip to content

Redundant Base Type Declaration

Michael Damatov edited this page Sep 10, 2025 · 2 revisions

Show a suggestion when the base type declaration can be omitted.

Example

class A : object // redundant "object"
{
}

class A // after applying the quick fix
{
} 

Tip

A quick fix is available to remove the redundant base type declaration.

Note

The analyzer can be configured or deactivated in the ReSharper Options or Rider Settings dialog.

Clone this wiki locally