• Changing a constructor with a field that is initialized by an anonymous method.

    更改具有由匿名方法初始化的字段的构造函数。

    youdao

  • Omit the parenthesis only if the anonymous method could have been used on any delegate.

    仅当匿名方法可能被用于任何委托时省略括号。

    youdao

  • A delegate can be instantiated by associating it either with a named or anonymous method.

    通过将委托与命名方法或匿名方法关联,可以实例化委托。

    youdao

  • This means that an anonymous method can be converted to delegates with a variety of signatures.

    这意味着匿名方法可转换为具有各种签名的委托。

    youdao

  • You can use them anywhere a delegate value is expected, that is, wherever an anonymous method can be used.

    可以在需要委托值的任何地方(也就是在可以使用匿名方法的任何地方)使用这些表达式。

    youdao

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

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

    youdao

  • This method takes a new client object and an anonymous method that holds the same code a normal using block would contain.

    方法接收一个新的客户端对象,以及一个匿名方法,该方法持有的代码与正常使用using语句块包含的代码完全相同。

    youdao

  • When an anonymous method USES the value of a local variable, the value is obtained at the moment the anonymous method is executed.

    当匿名方法使用局部变量的值时,将在执行匿名方法时获取该值。

    youdao

  • A delegate object is normally constructed by providing the name of the method the delegate will wrap, or with an anonymous method.

    委派物件一般是借由提供委派将包装的方法名称来建构,或使用匿名方法建构。

    youdao

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

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

    youdao

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

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

    youdao

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

    将匿名方法提取到其他方法中时,将在调用提取方法时获取局部变量的值。

    youdao

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

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

    youdao

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

    当电脑网络提供了简单、匿名的方式进行小额转账,无需信用卡时,将易于建立更好的艺术支持体系。

    youdao

  • To unsubscribe in this scenario, it is necessary to go back to the code where you subscribe to the event, store the anonymous method in a delegate variable, and then add the delegate to the event.

    若要在这种情况下取消订阅,必须回到订阅该事件的程序码,并将此匿名方法储存到委派变数内,然后再将该委派加入此事件中。

    youdao

  • If there are two anonymous members that both provide a method, the compiler will produce an error, but only if that method is called.

    如果有两个匿名成员都提供一个方法,编译器将会报错,但只在该方法被调用的情况下。

    youdao

  • To pass this to a recursive method, the anonymous class should extend a wrapper type known to the method.

    为了在递归方法中传递,匿名类应该扩展方法已知的包装器类型。

    youdao

  • The solution that Part 2 presents works for a multiuser and a multiform application and provides a method for identifying anonymous users across browser sessions.

    第2部分将要给出的解决方案非常适合多用户和多表单的应用程序,同时还能识别浏览器会话间的匿名用户。

    youdao

  • Loosely speaking, since our anonymous class doesn't define click itself, the method lookup proceeds right to left, as declared.

    大概地讲,因为我们的匿名类没有定义自己的click,所以这个方法会按照声明从右到左开始寻找。

    youdao

  • If you add a method, all JRuby has to do is generate a new anonymous class that includes the body of that method.

    如果你添加了一个方法,则所有JRuby要做的事情就是生成一个新的匿名类,该类包含了这一方法的方法体。

    youdao

  • The session parameter can be null, meaning that the method will create a separate anonymous session, do the work and then save the session in one method call.

    session参数可以为空,这表示该方法将创建一个单独的匿名会话,请创建该会话,然后在一次方法调用中保存它。

    youdao

  • His principal weapon was a method he developed to associate the real identities found in social networks such as Facebook and LinkedIn with the anonymous profiles of hackers.

    他的主要武器便是他所开发的一种方法,该方法可以将社交网络如Facebook与LinkedLn中发现的真实身份与黑客的匿名资料关联起来。

    youdao

  • I'm left with some ugly boilerplate code because of the anonymous inner class wrapping this method's real purpose - the two lines of code that appear in the body of the addOrderFrom method.

    考虑到包装这个方法的匿名内部类的真正用途,我留下了几行难看的样板代码—addorderfrom方法体中的两行代码。

    youdao

  • You must understand how anonymous inner classes work (the inline declaration of the Command subclass) and understand the implications of the execute method.

    您必须理解匿名内联类是如何工作的(Command子类的内联声明),并理解execute方法的含义。

    youdao

  • It's an anonymous function that's passed into The Times method and prints a static sentence. This code is tighter and simpler than the alternative with a for loop, shown in Listing 2.

    它是一个匿名函数,times方法被传递到该函数,函数的结果是打印出静态语句。

    youdao

  • Once the anonymous member's method has been called, flow has been delegated to that method entirely. So you cannot simulate type hierarchy like this.

    一旦匿名成员的方法被调用,控制流整个都被委派给了该方法。

    youdao

  • The convert anonymous class to nested refactoring takes an anonymous class and converts it to a nested class of the method that originally contained the anonymous class.

    ConvertAnonymousClasstoNested重构能够接受一个匿名类并将其转换为最初包含这个匿名类的方法的一个嵌套类。

    youdao

  • These are classes that execute user code, often a delegate to some method (which might be anonymous), when certain conditions are met.

    这些类用来在当特定情况出现时执行用户代码(用户代码通常是某个方法的delegate)。

    youdao

  • The addOrderFrom() method collapses to the definition of an anonymous inner class creation of the command class, wrapping the two work items.

    addOrderFrom()方法成为公共类的匿名内部类创建的定义,将这两个工作项目包装起来。

    youdao

  • The closest you can come is to use a class (frequently an anonymous class) as a "holder" of a method you need to execute.

    最接近的方式是利用类(经常是匿名类)作为想要执行的方法的 “holder”。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定