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 CS0127

Since 'function' returns void, a return keyword must not be followed by an object expression

A method with a void return type cannot return a value.

The following sample generates CS0127:

namespace x
{
   public class b
   {
      public int hiddenMember2
      {
         get
         {
            return 0;
         }
         set   // CS0127, set has an implicit void return type
         {
            return 0;   // remove return statement to resolve this CS0127
         }
      }
      public static void Main()
      {
      }
   }
}