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 CS1511

Keyword base is not available in a static method

The base keyword was used in a static method.

The following sample generates CS1511:

public class A  {
   public int j = 0;
   }
class C : A {   
   public void func() {
      base.j = 3;   // base allowed here
   }

   public static int Main () {
      base.j = 3;   // CS1511
      return 1;
   }
}