学习.Net |
|
||
C# |
2008年5月21日
摘要:
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集合.
阅读全文
|
Copyright © 2024 没有空气
Powered by .NET 8.0 on Kubernetes |