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 CS0030

Cannot convert type 'type' to 'type'

You must provide conversion routines to support certain operator overloads.

The following sample generates CS0030:

namespace x
{
   public class iii
   {
/*
      public static implicit operator iii(int aa)
      {
         return null;
      }
      public static implicit operator int(iii aa)
      {
         return 0;
      }
*/
      public static iii operator ++(iii aa)
      {
         return (iii)0;
         // uncomment the conversion routines to resolve CS0030
      }
      public static void Main()
      {
      }
   }   
}