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 CS0526

Interfaces cannot contain constructors

Constructors cannot be defined for interfaces. A method is considered a constructor if it has the same name as the class and no return type.

The following sample generates CS0526:

namespace x
{
   public interface clx
   {
      public clx()   // CS0526
      {
      }
   }
   public class cly
   {
      public static void Main()
      {
      }
   }
}