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 CS0514

'constructor' : static constructor cannot have an explicit this or base contructor call

There is no object for a static class. Therefore, the base class cannot be called. Objects must be known at compile time.

The following sample generates CS0514:

namespace x
{
   public class clx 
   {
      public clx(int i)
      {
      }
   }
   public class cly : clx
   {
      static cly() : base(0) // CS0514, remove base or static
      {
      }
   }
}

See Also

base