• 这些模块方法会变成包含它们的类的实例方法。

    Those module methods then become instance methods of the including class.

    youdao

  • 该类处理模块属性并引入不同的类和实例方法。

    This class handles the attributes for the module and introduces the various class and instance methods.

    youdao

  • 在服务类中实现作为公共实例方法的API方法。

    Implement the API methods in the service class as public instance methods.

    youdao

  • 在控制器类中实现作为公共实例方法的API方法。

    Implement the API methods in the controller class as public instance methods.

    youdao

  • 编译器赋予实例方法的优先级高于扩展方法。

    The compiler gives instance methods preference over extension methods.

    youdao

  • API方法实现是作为公共实例方法定义在控制器类中的。

    The API method implementations are defined in the controller class as public instance methods.

    youdao

  • DLL模块的功能,并将其绑定到类实例方法。

    And bind the DLL module functions to the class instance methods.

    youdao

  • 是可以通过使用实例方法语法调用的静态方法。

    Extension methods are static methods that can be invoked using instance method syntax.

    youdao

  • 此外,枚举类型支持拥有构造函数、实例方法和变量,等等。

    In addition, enumerated types support having constructors, instance methods, and variables, among other things.

    youdao

  • 一般来讲,可以通过类方法或实例方法的调用来获得对象引用。

    Generally, object references can be obtained by the invocation of a class method or instance method.

    youdao

  • 扩展方法是可以通过使用实例方法语法调用的静态方法。

    Extension methods are static methods that can be invoked using instance method syntax.

    youdao

  • 扩展方法不容易被发现并且在功能上比实例方法更受限。

    Extension methods are less discoverable and more limited in functionality than instance methods.

    youdao

  • 使用命名方法构造的委托可以封装静态方法或实例方法。

    Delegates constructed with a named method can encapsulate either a static method or an instance method.

    youdao

  • 像清单5那样编码的Order类在运行时提供了一些类和实例方法。

    The Order class as coded in Listing 5 provides dozens of class and instance methods at runtime. Table 2 offers a partial list of operations and attributes available on Order.

    youdao

  • 另外,一旦被导入,扩展方法可以使用实例方法语法调用之。

    In addition, once imported, extension methods can be invoked using instance method syntax.

    youdao

  • 然后,Factory类中的静态方法会调用您工厂实例的实例方法。

    The static methods in the Factory class will then call the instance methods of your factory instance.

    youdao

  • 一位代表可以执行使用静态方法或一个实例方法,它并不重要。

    A delegate can be implemented using a static method or an instance method; it does not matter.

    youdao

  • Log对象可以要求其自己的、由init()实例方法执行的初始化。

    The Log object could require its own initialization, to be performed by an init() instance method.

    youdao

  • 在代码隐藏中编写的事件处理程序必须是实例方法且不能是静态方法。

    The event handlers you write in the code behind must be instance methods and cannot be static methods.

    youdao

  • 由于这些原因,推荐保守地使用和仅在实例方法不可行或不可能的情况下使用。

    For those reasons, it is recommended that extension methods be used sparingly and only in situations where instance methods are not feasible or possible.

    youdao

  • 因此,这些断言方法现在都是TestCase上的实例方法,如清单17 所示。

    Therefore, all those assert methods are now instance methods on TestCase, as you can see back in Listing 17.

    youdao

  • 一个实例方法的执行在类的一个特定示例中有效;您在调用该类的方法之前必须创建一个类的实例。

    Execution of an instance method is scoped to a particular instance of the class; you must create an instance of the class before you can invoke the method of the class.

    youdao

  • 因此,一个静态方法如果具有与一个实例方法相同的名称,则必须具有一个不同的参数列表。

    Therefore, a static method with the same name as an instance method must have a different parameter list.

    youdao

  • 尽管同名的类方法和实例方法拥有相同的选择器,但它们可以有不同的参数类型和返回值类型。

    Although identically named class methods and instance methods are represented by the same selector, they can have different parameter types and return types.

    youdao

  • 如果该类具有一个无参构造函数,您想使用这个构造函数,然后立即在其上调用一个实例方法,那么有一种捷径。

    If the class has a no-args constructor, and you want to use that constructor and then immediately invoke a single instance method on it, there's a shortcut.

    youdao

  • 声明扩展方法并将其引入范围中后,可以调用此扩展方法,就像调用它所扩展的类型的实例方法那样。

    After an extension method is declared and brought into scope, you can call it like an instance method of the type that it extends.

    youdao

  • 扩展方法具备所有常规静态方法的所有能力。另外,一旦被导入,扩展方法可以使用实例方法语法调用之。

    Extension methods have all the capabilities of regular static methods. In addition, once imported, extension methods can be invoked using instance method syntax.

    youdao

  • 通过直接调度方法,可以把API定义类与控制器类绑定在一起,并且在控制器类中实现作为公共实例方法的API方法。

    With the direct dispatching approach, the API definition class is attached to the controller class, and the API methods are implemented in the controller class as public instance methods.

    youdao

  • 回顾一下插件制作者需要的三个条件:放置实现的位置,公开DSL(类方法)的方法以及为状态机公开实例方法的方法。

    Recall that a plug-in author needs three things: a place to put the implementation, a way to expose the DSL (the class methods), and a way to expose the instance methods for the state machine.

    youdao

  • 可以将GuiTestObject只传递到构造函数中一次,然后将设置和获取文本的方法用作实例方法,而不是用作类方法。

    Instead, you can pass in the GuiTestObject to the constructor once, and then use the methods to set and get the text as instance methods instead of class methods.

    youdao

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

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

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