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 CS0548

'property' : property or indexer must have at least one accessor

A property must have at least one accessor (get or set) method.

The following sample generates CS0548:

namespace x
{
   public class b
   {
      public int MyProp
      {
// remove comments to resolve CS0548
/*
         get
         {
            return 0;
         }
         set
         {
            return 0;
         }
*/
      }
      public static void Main()
      {
      }
   }
}

See Also

Property Declaration | Accessors