学习.Net  
C#
Hashtable 使用GetEnumerator() 时发生 System.InvalidOperationException类型错误

an exception of type System.InvalidOperationException is thrown if the collection is modified within a foreach loop, reporting that the collection was modified after the enumerator was instantiated.
因为枚举的时候改变了Hashtable集合.

http://mark.michaelis.net/Blog/TheInternalsOfForeach.aspx

http://support.microsoft.com/kb/815634/zh-cn
posted on 2008-05-21 09:31  没有空气  阅读(865)  评论(0编辑  收藏  举报
 
同时有 个用户访问
hit statistics