public class Self
{
public event FindRoomDelegate IWantFinds;
public Room FindRoom(string address)
{
if(this.IWantFinds != null)
return this.IWantFinds(address);
return null;
}
}
请懂事件委托的人讲解下这段代码
另外: 写了委托和没写委托结果一样 那为什么要用委托?
求解
Thanks