... 接口和实现的分离 Separation of Interface and Implementation 组件接口的实现体 Interface Implement 显式接口成员实现 explicit interface member implementation ...
基于182个网页-相关网页
中的显式接口成员实现 explicit interface member implementation
如果没有充分理由,应避免显式实现接口成员。
Avoid implementing interface members explicitly without having a strong reason to do so.
显式接口实现还允许程序员实现具有相同成员名称的两个接口,并为每个接口成员各提供一个实现。
Explicit interface implementation also allows the programmer to implement two interfaces that have the same member names and give each interface member a separate implementation.
应用推荐