Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Compiler Error CS0502
Collapse the table of content
Expand the table of content

Compiler Error CS0502

The class 'class' is abstract and sealed

A class cannot be both abstract and sealed.

The following sample generates CS0502:

// CS0502.cs
namespace x
   abstract sealed public class clx   // CS0502
      abstract public void f();
© 2015 Microsoft