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 CS0122

'member' is inaccessible due to its protection level

The access modifier for a class member prevents that member’s use in a derived class.

The following sample generates CS0122:

public class clx {
   void f()   {   // make public to resolve CS0122
   }

public class clz {
   public static int Main() {
   clx a = new clx();
   a.f();   // CS0122, f is private
   return 0;
   }
}