大学英语词汇短语释义解析及例句 anonymous methods

大学英语词汇短语释义解析及例句 anonymous methods


释义:

anonymous methods 匿名方法

例句:



Anonymous methods enable you to omit the parameter list.

您可使用匿名方法来忽略参数列表。



Anonymous methods are most frequently used to pass a code block as a delegate parameter.

匿名方法通常用于将代码块作为委托参数进行传递。



Creating anonymous methods is essentially a way to pass a code block as a delegate parameter.

要将代码块传递为委托参数,创建匿名方法则是唯一的方法。



For use with anonymous methods, the delegate and the code to be associated with it are declared together.

为了与匿名方法一起使用,委托和与之关联的代码必须一起声明。



This topic explains how Code Analysis handles warnings and metrics that are associated with anonymous methods.

本主题说明程式码分析如何处理与匿名方法相关联的警告和度量资讯。



With anonymous methods mimic the code layout of a regular method, aligned with the anonymous delegate declaration.

匿名方法模仿普通方法的布局,和匿名委托定义放在一行。



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的特性,如泛型、匿名方法和迭代器……



By using anonymous methods, you reduce the coding overhead in instantiating delegates because you do not have to create a separate method.

通过使用匿名方法,由于您不必创建单独的方法,因此减少了实例化委托所需的编码系统开销。



The bad news is that any project making heavy use of anonymous methods is likely no longer Code Analysis clean on its upgrade to Visual Studio 2008.

任何大 量使用了匿名方法的项目,在升级到Visual Studio 2008时,有可能无法保持代码分析的清洁性。



Use empty parentheses on parameter-less anonymous methods. Omit the parentheses only if the anonymous method could have been used on any delegate.

没有参数的匿名方法加上空的圆括号。除非这个匿名方法可能被用到任何类型的委托上。



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).

使用匿名方法时,代码风格应该和普通方法一样,与委托声明对齐。(大括号应该放到新的一行里)。

  • Issue by:www.viv-media.com
  • Web:http://
  • About Viv-Media|Free Add URL|Submit Press Release|Submit How To|SiteMap|Advertise with Us|Help|Contact Viv-Media |China Viv-Media
  • Copyright© 2010-2020 viv-media.com Corporation.
    Use of this web constitutes acceptance of Terms of Service and Privacy Policy. All rights reserved.  Poetry Online :Ancient Chinese Poetry