Permalink
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (31 sloc) 810 Bytes

RCS1160: Abstract type should not have public constructors

Property Value
Id RCS1160
Category Design
Default Severity Info
Enabled by Default
Supports Fade-Out -
Supports Fade-Out Analyzer -

Example

Code with Diagnostic

public abstract class Foo
{
    public Foo() // RCS1160
    {
    }
}

Code with Fix

public abstract class Foo
{
    protected Foo()
    {
    }
}

See Also

(Generated with DotMarkdown)