Code Analysis ReferenceAnalyzersRCS1160On this pageRCS1160: Abstract type should not have public constructorsPropertiesPropertyValueDefault SeverityInfoMinimum language version-ExamplesExample #1diagnostic.cspublic abstract class Foo{ public Foo() { }}fix.cspublic abstract class Foo{ protected Foo() { }}Applies toExtension for VS 2022Extension for VS CodeExtension for Open VSXPackage Roslynator.Analyzers