我有一个事件,我将我的处理程序与它相关联。当我编写处理程序方法时,我如何知道函数采用哪些参数?
例子:
// Add an event handler to be called whenever there is new color frame data
this.sensor.ColorFrameReady += this.SensorColorFrameReady;
this.sensor.AllFramesReady += this.AllFramesReady;
//handler
private void AllFramesReady(object sender, AllFramesReadyEventArgs allFramesReadyEventArgs)
{
throw new NotImplementedException();
}
我怎么知道我的函数的参数是object sender
所有帧准备好的参数?