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 CS0066

'event': event must be of a delegate type

An event must be a delegate.

The following sample generates CS0066:

using System;
public class EventHandler {
}

   // try the following declaration for EventHandler
   // public delegate void EventHandler(object sender, int e);

public class a {

   public event EventHandler Click {   // CS0066
      get {
         return null;
      }

      set {
      }

   }

   public static void Main() {
   }
}