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 CS1007

Property accessor already defined

Declaring a property requires you to declare the property’s accessor methods. However, a property cannot have duplicate code for the same accessor method.

The following sample generates CS1007:

namespace x {
   abstract public class clx {
      int i {
         get {
            return 0;
         }
         get {   // CS1007, duplicate get method
            return 0;
         }
      }
      public static int Main() {
         return 0;
      }
   }
}