Export (0) Print
Expand All
Expand Minimize

Compiler Error CS0205

Cannot call an abstract base member: 'method'

You cannot call an abstract method because it does not have a method body. For more information, see Abstract and Sealed Classes and Class Members (C# Programming Guide).

The following sample generates CS0205:

// CS0205.cs
abstract public class MyClass
{
   abstract public void M();
}

public class MyClass2 : MyClass
{
   public override void M()
   {
      base.M();   // CS0205, delete this line
   }

   public static void Main()
   {
   }
}

Community Additions

ADD
Show:
© 2015 Microsoft