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 CS0614

Cannot define a user-defined conversion to or from System.Variant

User-defined conversions, either implicit or explicit, cannot convert to or from the variant data type.

The following sample generates CS0614:

namespace VariantConversions {
   class C   {
      public static implicit operator variant (C c) {   // CS0614
         return 0; 
      }
      public static void Main () {
      }
   }
}