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 CS0522

'constructor' : structs cannot call base class constructors

A struct cannot call a base class constructor; remove the call to the base class constructor.

The following sample generates CS0522:

namespace x
{
   public class clx
   {
      public clx(int i)
      {
      }
      public static void Main()
      {
      }
   }
   public struct cly 
   {
      public cly(int i):base(0)   // CS0522
      // try the following line instead
      // public cly(int i){}
      {
      }
   }
}