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 CS1538

'type' : cannot reference a type through a derived type of its containing class; try 'path_to_type' instead

An attempt was made to access a member of a class through a derived class, which is not permitted in this situation.

The following sample generates CS1538:

class C {
   public class Inner {
      public static int v;
   }
}

class D : C {
   public static void Main() {
      C cValue = new C();

      D.Inner.v = 5;   // CS1538
      // try the following line instead
      // C.Inner.v = 5;
   }
}