TIPS-在多執行緒環境更新共用資料物件 2012-01-31 10:47 PM 0 14,798 有一段小時候寫的程式,運行多年無恙,卻在今天發生爆炸! 看似正常的更新Dictationary邏輯,卻在Dictoinary.Add時冒出"Index was outside the bounds of the array."錯誤: if (Cache.ContainsKey(key)) ...