Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
'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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.