Changeset 8317


Ignore:
Timestamp:
07/23/12 15:57:46 (9 years ago)
Author:
mkommend
Message:

#1901: Changed CollectionItemChangedEventArgs to use empty enumerables instead of null to indicate the absence of items.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Collections/3.3/CollectionItemsChangedEventArgs.cs

    r7259 r8317  
    2222using System;
    2323using System.Collections.Generic;
     24using System.Linq;
    2425
    2526namespace HeuristicLab.Collections {
     
    3637    public CollectionItemsChangedEventArgs(IEnumerable<T> items) {
    3738      this.items = items;
    38       this.oldItems = null;
     39      this.oldItems = Enumerable.Empty<T>();
    3940    }
    4041    public CollectionItemsChangedEventArgs(IEnumerable<T> items, IEnumerable<T> oldItems) {
Note: See TracChangeset for help on using the changeset viewer.