Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谁能向我解释为什么在抽象CollectionBase类(System.Collections其中派生自IList)中没有IList实现成员?我认为这是强制性的。
CollectionBase
System.Collections
IList
它IList 显式地实现,因此您需要将您的CollectionBase实例强制转换IList为访问这些成员。
IList list = (IList)collectionBase; list.Add(...);