Skip to content

Internal Constructors in Abstract Classes

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

Suggests using a more appropriate visibility for internal constructors in abstract classes.

Applies to

  • internal constructors in internal abstract classes (should become protected)
  • internal constructors in public abstract classes (should become private protected)

Tip

A quick-fix is available to change the visibility.

Note

The analyzer is only active when C# 7.2 or higher is used.

Note

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

Clone this wiki locally