- Timestamp:
- 02/04/10 03:04:14 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Collections/3.3
- Files:
-
- 3 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Collections/3.3/HeuristicLab.Collections-3.3.csproj
r2664 r2745 49 49 </ItemGroup> 50 50 <ItemGroup> 51 <Compile Include="ReadOnlyObservableArray.cs" /> 52 <Compile Include="ObservableArray.cs" /> 53 <Compile Include="IObservableArray.cs" /> 51 54 <Compile Include="ObservableKeyedCollection.cs" /> 52 55 <Compile Include="ReadOnlyObservableSet.cs" /> -
trunk/sources/HeuristicLab.Collections/3.3/ObservableList.cs
r2623 r2745 58 58 set { 59 59 T item = list[index]; 60 if (! item.Equals(value)) {60 if (!((item == null) && (value == null)) && ((item == null) || (!item.Equals(value)))) { 61 61 list[index] = value; 62 62 OnItemsReplaced(new IndexedItem<T>[] { new IndexedItem<T>(index, value) }, new IndexedItem<T>[] { new IndexedItem<T>(index, item) }); … … 320 320 } 321 321 public void Sort(int index, int count, IComparer<T> comparer) { 322 if ( list.Count > 1) {322 if (count > 1) { 323 323 IndexedItem<T>[] oldItems = GetIndexedItems(index, count); 324 324 list.Sort(index, count, comparer);
Note: See TracChangeset
for help on using the changeset viewer.