foreach是取只读的,在取的时候数据不能变(包括修改,删除,添加等)。要避免这个问题,就应该使用for循环。

 

https://msdn.microsoft.com/zh-cn/library/ttw7t8t6.aspx

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2022-01-16
猜你喜欢
  • 2021-10-17
  • 2021-09-24
  • 2021-11-22
  • 2021-08-21
  • 2022-12-23
相关资源
相似解决方案