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 CS0106

The modifier 'modifier' is not valid for this member type

A class or interface member was marked with an invalid access modifier. For example:

It is also possible to generate CS0106 by applying the public keyword to an explicit interface declaration. In this case, remove the public keyword from the explicit interface declaration.

The following sample generates CS0106:

namespace x {
   interface I {
      void m();
      static public void f();   // CS0106
   }
   public class clx {
      public void I.m() {   // CS0106
      }
      public static int Main() {
         return 0;
      }
   }
}