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 CS0547

'property' : property or indexer cannot have void type

void is invalid as a return value for a property.

The following sample generates CS0547:

public class a {
   public void i {   // CS0547
   // try the following declaration instead
   // public int i
      get {
         return 0;
      }
   }
}

public class b : a {
   public static void Main() {
   }
}

See Also

Properties