Internal Constructors in Abstract Classes - prodot/ReCommended-Extension GitHub Wiki

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.

⚠️ **GitHub.com Fallback** ⚠️