Compiler Error CS0238
TOC
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

Compiler Error CS0238

'member' cannot be sealed because it is not an override

sealed was used on a member that was not also marked with override.

The following sample generates CS0238:

// CS0238.cs
abstract class cly
{
   public abstract void f();
}

class clx : cly
{
   public static void Main()
   {
   }

   public sealed void f() // CS0238
   // Try the following definition instead:
   // public override sealed void f()
   {
   }
}
Show:
© 2016 Microsoft