Compiler Error CS0509

'class1' : cannot derive from sealed type 'class2'

A sealed class cannot act as a base class. Structs are sealed by default.

The following sample generates CS0509:

// CS0509.cs
// compile with: /target:library
sealed public class clx {}
public class cly : clx {}   // CS0509