The requested page is not available for the requested platform. You are viewing the content for Default platform.

Static class cannot be sealed

CodeRush Classic shows the Static class cannot be sealed code issue if a static class is marked as sealed.


Remove the sealed or static modifier from the class declaration.


Highlights the class declarations, which would cause the A class cannot be both static and sealed compilation error.


public static sealed class MyClass


public static class MyClass
public sealed class MyClass