1 申明一个自定义的类并且继承事件的基类 public class ClientSocketModelConnectedEvent:EventArgs { private string param; public string Data { get { return param; } set { value = param; } } public ClientSocketModelConnectedEvent(string data) { this.param = data; } } 2 申明委…