Expand Minimize
0 out of 1 rated this helpful - Rate this topic

Compiler Error CS0513

'function' is abstract but it is contained in nonabstract class 'class'

A method cannot be an abstract member of a nonabstract class.

The following sample generates CS0513:

// CS0513.cs
namespace x
{
   public class clx
   {
      abstract public void f();   // CS0513, abstract member of nonabstract class
   }
}
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.