Enumerable.Any 扩展方法可以判断集合为空: 如果不为空 if (!source.Any()) { //... } 相关文章: 2022-12-23 2022-12-23 2021-11-27 2021-10-22 2022-02-24 2021-12-04 2022-12-23