Permalink
Fetching contributors…
Cannot retrieve contributors at this time
45 lines (33 sloc) 850 Bytes

RCS1225: Make class sealed

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

Summary

A class that has only private constructors should be marked as sealed.

Example

Code with Diagnostic

public class Foo // RCS1225
{
    private Foo()
    {
    }
}

Code with Fix

public sealed class Foo
{
    private Foo()
    {
    }
}

See Also

(Generated with DotMarkdown)