Export (0) Print
Expand All
Expand Minimize

Compiler Error CS0501

'member function' must declare a body because it is not marked abstract or extern

Nonabstract methods must have implementations. For example, the following sample generates CS0501:

// CS0501.cs
namespace x
{
   public class clx
   {
      public void f();   // CS0501, needs implementation
   }
}
Show:
© 2014 Microsoft