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 CS0568

Structs cannot contain explicit parameterless contructors

Each struct already has a default constructor that initializes the object to zero. Therefore, the constructors that you can create for a struct must take one or more parameters.

The following sample generates CS0568:

namespace x
{
   public class clx
   {
      public clx(){}
      public static void Main()
      {
      }
   }
   public struct cly 
   {
      public cly(){}   // CS0568, specify one or more parameters
   }
}