Enumerable.Any 扩展方法可以判断集合为空:

如果不为空

if (!source.Any()) { //...
}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-22
  • 2021-12-14
  • 2022-12-23
  • 2021-11-27
  • 2021-11-05
  • 2022-02-24
猜你喜欢
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-06
  • 2021-11-05
相关资源
相似解决方案