NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Error CS0531

'member' : interface members cannot have a definition

Methods that are declared in an interface must be implemented in a class that inherits from it and not in the interface itself.

The following sample generates CS0531:

namespace x {
   public interface clx {
      int xclx() {   // CS0531, cannot define xclx
         return 0;
      }   
      // try the following declaration instead
      //   int xclx();   
   }
   public class cly {
      public static void Main() {
      }
   }
}