Changeset 2664 for trunk/sources/HeuristicLab.Collections/3.3
- Timestamp:
- 01/21/10 02:04:44 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Collections/3.3
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Collections/3.3/HeuristicLab.Collections-3.3.csproj
r2623 r2664 49 49 </ItemGroup> 50 50 <ItemGroup> 51 <Compile Include="ObservableKeyedCollection.cs" /> 51 52 <Compile Include="ReadOnlyObservableSet.cs" /> 52 53 <Compile Include="IObservableSet.cs" /> … … 64 65 <Compile Include="IObservableCollection.cs" /> 65 66 <Compile Include="IObservableDictionary.cs" /> 66 <Compile Include="ObservableKeyedCollectionBase.cs" />67 67 <Compile Include="ObservableCollection.cs" /> 68 68 <Compile Include="IndexedItem.cs" /> -
trunk/sources/HeuristicLab.Collections/3.3/ObservableKeyedCollection.cs
r2662 r2664 31 31 namespace HeuristicLab.Collections { 32 32 [Serializable] 33 public abstract class ObservableKeyedCollection Base<TKey, TItem> : IObservableKeyedCollection<TKey, TItem> {33 public abstract class ObservableKeyedCollection<TKey, TItem> : IObservableKeyedCollection<TKey, TItem> { 34 34 [Storable] 35 35 private Dictionary<TKey, TItem> dict; … … 54 54 55 55 #region Constructors 56 protected ObservableKeyedCollection Base() {56 protected ObservableKeyedCollection() { 57 57 dict = new Dictionary<TKey, TItem>(); 58 58 } 59 protected ObservableKeyedCollection Base(int capacity) {59 protected ObservableKeyedCollection(int capacity) { 60 60 dict = new Dictionary<TKey, TItem>(capacity); 61 61 } 62 protected ObservableKeyedCollection Base(IEqualityComparer<TKey> comparer) {62 protected ObservableKeyedCollection(IEqualityComparer<TKey> comparer) { 63 63 dict = new Dictionary<TKey, TItem>(comparer); 64 64 } 65 protected ObservableKeyedCollection Base(IEnumerable<TItem> collection) {65 protected ObservableKeyedCollection(IEnumerable<TItem> collection) { 66 66 if (collection == null) throw new ArgumentNullException(); 67 67 dict = new Dictionary<TKey, TItem>(); … … 70 70 OnItemsAdded(collection); 71 71 } 72 protected ObservableKeyedCollection Base(int capacity, IEqualityComparer<TKey> comparer) {72 protected ObservableKeyedCollection(int capacity, IEqualityComparer<TKey> comparer) { 73 73 dict = new Dictionary<TKey, TItem>(capacity, comparer); 74 74 } 75 protected ObservableKeyedCollection Base(IEnumerable<TItem> collection, IEqualityComparer<TKey> comparer) {75 protected ObservableKeyedCollection(IEnumerable<TItem> collection, IEqualityComparer<TKey> comparer) { 76 76 if (collection == null) throw new ArgumentNullException(); 77 77 dict = new Dictionary<TKey, TItem>(comparer);
Note: See TracChangeset
for help on using the changeset viewer.