- Timestamp:
- 12/29/09 02:33:57 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Collections/3.3/ObservableDictionary.cs
r2574 r2575 80 80 public ObservableDictionary(IDictionary<TKey, TValue> dictionary) { 81 81 dict = new Dictionary<TKey, TValue>(dictionary); 82 OnItemsAdded(dictionary); 82 83 } 83 84 public ObservableDictionary(int capacity, IEqualityComparer<TKey> comparer) { … … 86 87 public ObservableDictionary(IDictionary<TKey, TValue> dictionary, IEqualityComparer<TKey> comparer) { 87 88 dict = new Dictionary<TKey, TValue>(dictionary, comparer); 89 OnItemsAdded(dictionary); 90 } 91 #endregion 92 93 #region Destructors 94 ~ObservableDictionary() { 95 Dispose(false); 96 } 97 protected virtual void Dispose(bool disposing) { 98 if (disposing) { 99 Clear(); 100 } 101 } 102 public void Dispose() { 103 Dispose(true); 104 GC.SuppressFinalize(this); 88 105 } 89 106 #endregion
Note: See TracChangeset
for help on using the changeset viewer.