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 CS0065

'event' : event property must have both get and set accessors

An event property must have both access methods.

The following sample generates CS0065:

using System;
public delegate void Eventhandler(object sender, int e);
public class MyClass {
   public event EventHandler Click {   // CS0065, no set
      get {
         return null;
      }
      // uncomment this set definition
/*
      set {
      }
*/
   }

   public static void Main() {
   }
}