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 CS1553

Illegal declaration; use 'implicit operator <dest-type> (...' instead

The return type for an operator must precede the parameter list.

The following sample generates CS1553:

class MyClass {
   public static int implicit operator (MyClass f) {   // CS1553
   // try the following line instead
   // public static implicit operator int (MyClass f) { 
      return 6; 
   }
   
   public static void Main() {
   }

}