With anonymous methods mimic the code layout of a regular method, aligned with the anonymous delegate declaration.
基于1个网页-相关网页
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.
作为委托参数传递的方法必须与委托声明具有相同的签名。
With anonymous methods, mimic the code layout of a regular method, aligned with the delegate declaration. (complies with placing an open curly brace in a new line).
使用匿名方法时,代码风格应该和普通方法一样,与委托声明对齐。(大括号应该放到新的一行里)。
应用推荐