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 CS1581

Invalid return type in XML comment cref attribute

When attempting to reference a method, the compiler detected an error due to an invalid return type.

The following sample generates CS1581:

public class MyClass {
   public static void Main() {
   }

   public static explicit operator int(MyClass f) { 
      return 0; 
   }
}

/// <seealso cref="MyClass.explicit operator intt(MyClass)"/>   // CS1581
// try the following line instead
// /// <seealso cref="MyClass.explicit operator int(MyClass)"/>
public class MyClass2 {
}