- Timestamp:
- 01/09/10 03:22:58 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Collections/3.3/ObservableDictionary.cs
r2575 r2618 91 91 #endregion 92 92 93 #region Destructors94 ~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);105 }106 #endregion107 108 93 #region Access 109 94 public bool ContainsKey(TKey key) { … … 157 142 158 143 #region Conversion 144 public ReadOnlyObservableDictionary<TKey, TValue> AsReadOnly() { 145 return new ReadOnlyObservableDictionary<TKey, TValue>(this); 146 } 159 147 void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex) { 160 148 ((ICollection<KeyValuePair<TKey, TValue>>)dict).CopyTo(array, arrayIndex);
Note: See TracChangeset
for help on using the changeset viewer.