EventHandler的迷惑
CCC的 2012-09-07 04:10:51 引用了一个类
public class Reader
{
public Reader();
public EventHandler<ConnectionChangeEventArgs> Connected;
public EventHandler<ConnectionChangeEventArgs> ConnectionLost;
public EventHandler<ConnectionChangeEventArgs> Disconnected;
public virtual void OnConnected(ConnectionChangeEventArgs args);
public virtual void OnConnectionChanged(ConnectionChangeEventArgs args);
public virtual void OnDisconnected(ConnectionChangeEventArgs args);
}
如何调用它的Connected事件,是不是可以作为一个属性来用