Changeset 6760 for branches/PersistenceSpeedUp/HeuristicLab.Collections
- Timestamp:
- 09/14/11 13:59:25 (13 years ago)
- Location:
- branches/PersistenceSpeedUp
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceSpeedUp
- Property svn:ignore
-
old new 12 12 *.psess 13 13 *.vsp 14 *.docstates
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/PersistenceSpeedUp/HeuristicLab.Collections/3.3/HeuristicLabCollectionsPlugin.cs.frame
r6099 r6760 26 26 /// Plugin class for HeuristicLab.Collections plugin. 27 27 /// </summary> 28 [Plugin("HeuristicLab.Collections", "3.3. 4.$WCREV$")]28 [Plugin("HeuristicLab.Collections", "3.3.5.$WCREV$")] 29 29 [PluginFile("HeuristicLab.Collections-3.3.dll", PluginFileType.Assembly)] 30 30 [PluginDependency("HeuristicLab.Persistence", "3.3")] -
branches/PersistenceSpeedUp/HeuristicLab.Collections/3.3/ObservableList.cs
r5445 r6760 24 24 using System.Collections.Generic; 25 25 using System.ComponentModel; 26 using System.Linq; 26 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 28 … … 211 212 } 212 213 214 /// <summary> 215 /// Performs a Clear and an AddRange, but does not fire separate events for those operations 216 /// </summary> 217 /// <param name="collection"></param> 218 public void Replace(IEnumerable<T> collection) { 219 List<IndexedItem<T>> oldItems = null; 220 if (list.Any()) oldItems = list.Select((x, i) => new IndexedItem<T>(i, x)).ToList(); 221 else oldItems = new List<IndexedItem<T>>(); 222 223 int oldCapacity = list.Capacity; 224 list.Clear(); 225 list.AddRange(collection); 226 227 List<IndexedItem<T>> items = null; 228 if (list.Any()) items = list.Select((x, i) => new IndexedItem<T>(i, x)).ToList(); 229 else items = new List<IndexedItem<T>>(); 230 231 if (oldCapacity != list.Capacity) OnPropertyChanged("Capacity"); 232 OnPropertyChanged("Item[]"); 233 if (oldItems.Count != items.Count) OnPropertyChanged("Count"); 234 OnItemsReplaced(items, oldItems); 235 } 236 213 237 public bool Remove(T item) { 214 238 int index = list.IndexOf(item); -
branches/PersistenceSpeedUp/HeuristicLab.Collections/3.3/Properties/AssemblyInfo.frame
r6099 r6760 54 54 // by using the '*' as shown below: 55 55 [assembly: AssemblyVersion("3.3.0.0")] 56 [assembly: AssemblyFileVersion("3.3. 4.$WCREV$")]56 [assembly: AssemblyFileVersion("3.3.5.$WCREV$")]
Note: See TracChangeset
for help on using the changeset viewer.