Skip to content

Internal Constructors in Abstract Classes

Michael Damatov edited this page Jan 17, 2024 · 2 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)

💡 A quick-fix is available to change the visibility.

Note

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

💡 The analyzer can be deactivated in the ReSharper Options dialog.