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 CS0558

User-defined operators 'operators' must be declared static and public

Both the static and public access modifiers must be specified on user-defined operators.

The following sample generates CS0558:

namespace x {
   public class ii {
      public class iii {
         static implicit operator int(iii aa) {   // CS0558, add public
            return 0;
         }
      }
      public static void Main() {
      }
   }
}