更新:2007 年 11 月
错误消息
接口中的事件不能具有 add 或 remove 访问器不能在
下面的示例生成 CS0069:
// CS0069.cs
// compile with: /target:library
public delegate void EventHandler();
public interface a
{
event EventHandler Click { remove {} } // CS0069
event EventHandler Click2; // OK
} | |