With Anonymous Methods 时使用匿名方法
The biggest news is that the debugger now has support for C# 2.0 features such as generics, anonymous methods and iterators ....
最大的消息是调试器现在支持C# 2.0的特性,如泛型、匿名方法和迭代器……
For use with anonymous methods, the delegate and the code to be associated with it are declared together.
为了与匿名方法一起使用,委托和与之关联的代码必须一起声明。
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).
使用匿名方法时,代码风格应该和普通方法一样,与委托声明对齐。(大括号应该放到新的一行里)。
应用推荐