在路上

导航

2010年9月12日 #

Why does List<T> need to inherit IList<T> and IList interfaces at the same time?

摘要: To support backward compatibility向后兼容For example, if the List<T> class implemented only the IList<T> interface, no code could consider a List<DateTime> object an IList.And interfaceIList is explictimplemented in it. So you can only invoke the methods by its interface not class type 阅读全文

posted @ 2010-09-12 17:43 Clarence Yang 阅读(285) 评论(0) 推荐(0) 编辑