For delegates that represent multiple methods, the . net framework provides methods of the 对于表示多个方法的委托,.netframework提供了
Delegates can be bound to a single method or to multiple methods, referred to as multicasting 委托可绑定到单个方法或多个方法,后者又称为多路广播。
Delegates can be chained together; for example, multiple methods can be called on a single event 委托可以链接在一起;例如,可以对一个事件调用多个方法。
Is useful for creating event handlers that call multiple methods each time an event occurs 对于创建在每次发生事件时都调用多种方法的事件处理程序非常有用。
However, struts allows for controllers that dispatch to multiple methods in a single class if the class extends ,struts可以让控制器分派给这个类中的多个方法。
Property to distinguish between multiple methods that match the signature requirements for a specific method type 属性区分符合特定方法类型的签名要求的多个方法。
An event handler can invoke multiple methods but there is no way to receive multiple return values from an event handler 事件处理程序可以调用多个方法,但不能从一个事件处理程序接收多个返回值。
Implements, you can also write a single method that implements multiple methods defined in an interface, as in the following example ,也可以编写单个方法来实现接口中定义的多个方法,如下面的示例所示:
It implements multiple methods of supporting translations and determining the appropriate locale based on the user and their browser 它实现了多种方法,基于用户和他们使用的浏览器来支持翻译和决定适当的本地化。
Interfaces are used to namespace the method names, so a single object can have multiple methods with the same name but with different interfaces 接口用于名称空间和方法名称,因此一个单独的对象可以有名称相同而接口不同的多个方法。