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 CS0118

'construct1_name' denotes a 'construct1' where a 'construct2' was expected

The compiler detected what was probably the instantiation of a class; however, the data type was a namespace.

The following sample generates CS0118:

namespace x {
   class a {
      x ix = new x();   // CS0118, x not a class!
      public static void Main() {
      }
   }
}