List<T> or IList<T>
2024-08-27 00:53:14
If you are exposing your class through a library that others will use, you generally want to expose it via interfaces rather than concrete implementations. This will help if you decide to change the implementation of your class later to use a different concrete class. In that case the users of your library won't need to update their code since the interface doesn't change.
If you are just using it internally, you may not care so much, and using List<T>
may be ok.
最新文章
- Ubuntu apt-get ";Hash Sum mismatch"; 问题解决方法
- python读取xml文件
- RMAN备份与恢复之表空间
- 静态成员变量.xml
- ffmpeg 研究
- java异常处理机制 (转载)
- PHP获得header头进行分析
- Properties/Property文件读取(键值均)乱码问题!
- Robot Framework安装配置 Linux
- Angular4 后台管理系统搭建(1) - 建立一个通用的Wijmo5 flexgrid分页器组件
- 201521123106 《Java程序设计》第5周学习总结
- Linux常见命令集锦
- .net core系列之初识asp.net core
- html的meta标签
- mysql索引规范
- 六.HashMap HashTable HashSet区别剖析总结
- Rose 2003使用的问题
- jQuery合并同一列中相同文本的相邻单元格
- CSS 中伪类的顺序
- Python学习 day04打卡
热门文章
- mvn创建flink项目
- error C1002: 在第 2 遍中编译器的堆空间不足
- 123457123456#0#----com.DoraGame.AiMiYu20--前拼后广--caimi-doraX
- 深入浅出深度学习:原理剖析与python实践_黄安埠(著) pdf
- JAVA协程 纤程 与Quasar 框架
- HTML布局排版5 测试某段html页面1
- 个人博客搭建全记录(Hexo,Github)
- 【JS】实用/常用函数/Function方法
- JAVA操作word方法
- CMS之promotion failed&;concurrent mode failure