This topic has not yet been rated - Rate this topic

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
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ