With anonymous methods mimic the code layout of a regular method, aligned with the anonymous delegate declaration.
基于1个网页-相关网页
The following example shows an event delegate declaration.
以下范例所示为事件委派的宣告。
A delegate declaration is sufficient to define a delegate class.
一个委托声明足以定义一个委托类。
The method that you pass as a delegate parameter must have the same signature as the delegate declaration.
作为委托参数传递的方法必须与委托声明具有相同的签名。
应用推荐