Export (0) Print
Expand All
Expand Minimize

Compiler Error CS0501 

Error Message

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

Nonabstract methods must have implementations.

The following sample generates CS0501:

// CS0501.cs
// compile with: /target:library
public class clx
   public void f();   // CS0501 declared not defined
   public void g() {}   // OK

Community Additions

© 2014 Microsoft