Compiler Error CS0533
TOC
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Compiler Error CS0533 

Error Message

'derived-class member' hides inherited abstract member 'base-class member'

A base class method is hidden. Check the syntax of your declaration to see if it is correct.

For more information, see base.

The following sample generates CS0533:

// CS0533.cs
namespace x
{
   abstract public class a
   {
      abstract public void f();
   }

   abstract public class b : a
   {
      new abstract public void f();   // CS0533
      // try the following lines instead
      // override public void f()
      // {
      // }

      public static void Main()
      {
      }
   }
}
Show:
© 2016 Microsoft