These all accept a delegate, usually in the form of an anonymous method.
这些操作都可以接受一个委托,一般可以使用匿名方法的方式来传递。
Editing an anonymous method or any method that contains an anonymous method.
编辑匿名方法或任何包含匿名方法的方法。
This method takes a new client object and an anonymous method that holds the same code a normal using block would contain.
方法接收一个新的客户端对象,以及一个匿名方法,该方法持有的代码与正常使用using语句块包含的代码完全相同。
When computer networks provide an easy anonymous method for sending someone a small amount of money, without a credit card, it will be easy to set up a much better system to support the arts.
当电脑网络提供了简单、匿名的方式进行小额转账,无需信用卡时,将易于建立更好的艺术支持体系。
Adding a new anonymous method.
添加新的匿名方法。
Associating the delegate with an anonymous method.
使委托与匿名方法关联。
These all accept a delegate , usually in the form of an anonymous method.
这些操作都可以接受一个委托,一般可以使用匿名方法的方式来传递。
Changing a constructor with a field that is initialized by an anonymous method.
更改具有由匿名方法初始化的字段的构造函数。
Omit the parenthesis only if the anonymous method could have been used on any delegate.
仅当匿名方法可能被用于任何委托时省略括号。
As shown in the following example, an anonymous method can accept arguments of any type.
如下面的例子所示,一个匿名方法可以接受任何类型的参数。
A delegate can be instantiated by associating it either with a named or anonymous method.
通过将委托与命名方法或匿名方法关联,可以实例化委托。
This means that an anonymous method can be converted to delegates with a variety of signatures.
这意味着匿名方法可转换为具有各种签名的委托。
You can use them anywhere a delegate value is expected, that is, wherever an anonymous method can be used.
可以在需要委托值的任何地方(也就是在可以使用匿名方法的任何地方)使用这些表达式。
When an anonymous method USES the value of a local variable, the value is obtained at the moment the anonymous method is executed.
当匿名方法使用局部变量的值时,将在执行匿名方法时获取该值。
When an anonymous method is extracted into another method, the value of the local variable is obtained at the moment of the call to the extracted method.
将匿名方法提取到其他方法中时,将在调用提取方法时获取局部变量的值。
When an anonymous method is extracted into another method, the value of the local variable is obtained at the moment of the call to the extracted method.
将匿名方法提取到其他方法中时,将在调用提取方法时获取局部变量的值。
应用推荐