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 CS1554

Illegal declaration; use '<type> operator ++ (...' instead

The return type for a user-defined operator must appear before the keyword operator.

The following sample generates CS1554:

class MyClass {
   public static operator ++ MyClass (MyClass f) {   // CS1554
   // try the following line instead
   // public static MyClass operator ++ (MyClass f) {
      return new MyClass (); 
   }
   
   public static void Main() {
   }
}