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.
The following sample generates CS0205:
C#
// 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()
{
}
}
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.
.NET feedback
.NET is an open source project. Select a link to provide feedback: