New Rule Idea: Replace protected parameterless empty constructor with abstract class #8796
Labels
Area: C#
C# rules related issues.
Area: VB.NET
VB.NET rules related issues.
Type: Rule Idea
Idea for a rule that has NOT been specified.
Follow up of #8795
Suggest the exact opposite from what was originally suggested: If there's a parameterless protected constructor without any public/internal constructors, suggest making the class abstract to make the contract clear.
Ask to remove the constructor only if it's empty.
The text was updated successfully, but these errors were encountered: