Free cookie consent management tool by TermsFeed Policy Generator

Changeset 2745


Ignore:
Timestamp:
02/04/10 03:04:14 (14 years ago)
Author:
swagner
Message:

Added ObservableArray (#819)

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  
    4949  </ItemGroup>
    5050  <ItemGroup>
     51    <Compile Include="ReadOnlyObservableArray.cs" />
     52    <Compile Include="ObservableArray.cs" />
     53    <Compile Include="IObservableArray.cs" />
    5154    <Compile Include="ObservableKeyedCollection.cs" />
    5255    <Compile Include="ReadOnlyObservableSet.cs" />
  • trunk/sources/HeuristicLab.Collections/3.3/ObservableList.cs

    r2623 r2745  
    5858      set {
    5959        T item = list[index];
    60         if (!item.Equals(value)) {
     60        if (!((item == null) && (value == null)) && ((item == null) || (!item.Equals(value)))) {
    6161          list[index] = value;
    6262          OnItemsReplaced(new IndexedItem<T>[] { new IndexedItem<T>(index, value) }, new IndexedItem<T>[] { new IndexedItem<T>(index, item) });
     
    320320    }
    321321    public void Sort(int index, int count, IComparer<T> comparer) {
    322       if (list.Count > 1) {
     322      if (count > 1) {
    323323        IndexedItem<T>[] oldItems = GetIndexedItems(index, count);
    324324        list.Sort(index, count, comparer);
Note: See TracChangeset for help on using the changeset viewer.