{
try
{
this.cI.Close();
this.cI.OnFrameReceived -= new delegateFrameReceived(this.ProcessFrame);
// 调用下面的函数时,怎么不要参数列表呀?
}
catch
{
}
this.connected = false;
return this.connected;
} private void ProcessFrame(short ver, short msg_type, int msg_id, byte[] data)
{ dosomething()
} 看到一个例子,,为什么调用下面的函数时,,不要把4个参数在调用的地方,描述一下呢?
是什么道理呀?
try
{
this.cI.Close();
this.cI.OnFrameReceived -= new delegateFrameReceived(this.ProcessFrame);
// 调用下面的函数时,怎么不要参数列表呀?
}
catch
{
}
this.connected = false;
return this.connected;
} private void ProcessFrame(short ver, short msg_type, int msg_id, byte[] data)
{ dosomething()
} 看到一个例子,,为什么调用下面的函数时,,不要把4个参数在调用的地方,描述一下呢?
是什么道理呀?
public event EventHandler UpdateEvent;
// 在执行的时候需要传递参数
UpdateEvent(null, null);this.cI.OnFrameReceived -= new delegateFrameReceived(this.ProcessFrame);
这里不需要定义参数是因为在cI中执行OnFrameReceived事件时 已经有了默认的参数