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 CS1018

Keyword this or base expected

The compiler encountered an incomplete constructor declaration.

The following sample generates CS1018 and suggests several ways to resolve the error:

namespace x {
   public class C {
   }
   public class a : C {
      public a(int i) {
      }
      public a () :   { // CS1018
      // possible resolutions:
      // public a () resolves by removing :
      // public a () : base() calls C's default constructor
      // public a () : this(1) needs a constructor that takes an int
      }
      public static int Main() {
          return 1;
      }
   }
}