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 CS0175

Use of keyword base is illegal in this context

The base keyword must be used to specify a particular member of the base class.

The following sample generates CS0175:

using System;
class BaseClass {
   public int TestInt = 0;
}

class MyClass : BaseClass {
   public static void Main() {
      MyClass aClass = new MyClass();
      aClass.BaseTest();
   }

   public void BaseTest() {
      Console.WriteLine(base);   // CS0175
      // try the following line instead
      // Console.WriteLine(base.TestInt);
      base = 9;   // CS0175
      // try the following line instead
      // base.TestInt = 9;
   }
}