在刪除List物件裡面的項目時,如果用foreach去刪除,就會出現 Collection was modified; enumeration operation may not execute. 的錯誤訊息。所以那裡如何刪除呢?
2013-10-17
在刪除List物件裡面的項目時,如果用foreach去刪除,就會出現 Collection was modified; enumeration operation may not execute. 的錯誤訊息。所以那裡如何刪除呢?