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 CS1512

Keyword base is not available in the current context

The base keyword was used outside of a method, property, or constructor.

The following sample generates CS1512:

using System;
class CMyClass {
   public String xx = base.ToString();   // CS1512
   // try the following line instead
   // public String xx;
   public void x() {
      Console.WriteLine(base.ToString()); 
   }
   public static void Main() {
      CMyClass z = new CMyClass();
      z.x();
   }
}