05
3
内容纲要
A delegate design might be a better choice than an interface
design if one or more of these conditions are true:
• The interface defines only a single method.
• Multicast capability is needed.
• The subscriber needs to implement the interface multiple times.
如果满足以下一个或多个条件,委托设计可能比接口设计更好:
• 接口仅定义一个方法。
• 需要多播功能。
• 订阅者需要多次实现该接口。