Changeset 3560 for trunk/sources/HeuristicLab.Collections
- Timestamp:
- 04/30/10 02:48:19 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Collections/3.3
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Collections/3.3/HeuristicLab.Collections-3.3.csproj
r3390 r3560 122 122 </ItemGroup> 123 123 <ItemGroup> 124 <ProjectReference Include="..\..\HeuristicLab.Persistence\3.3\HeuristicLab.Persistence-3.3.csproj"> 125 <Project>{102BC7D3-0EF9-439C-8F6D-96FF0FDB8E1B}</Project> 126 <Name>HeuristicLab.Persistence-3.3</Name> 127 </ProjectReference> 124 128 <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\HeuristicLab.PluginInfrastructure.csproj"> 125 129 <Project>{94186A6A-5176-4402-AE83-886557B53CCA}</Project> -
trunk/sources/HeuristicLab.Collections/3.3/HeuristicLabCollectionsPlugin.cs.frame
r3384 r3560 28 28 [Plugin("HeuristicLab.Collections", "3.3.0.$WCREV$")] 29 29 [PluginFile("HeuristicLab.Collections-3.3.dll", PluginFileType.Assembly)] 30 [PluginDependency("HeuristicLab.Common", "3.3")]31 30 [PluginDependency("HeuristicLab.Persistence", "3.3")] 32 31 public class HeuristicLabCollectionsPlugin : PluginBase { -
trunk/sources/HeuristicLab.Collections/3.3/ObservableArray.cs
r3390 r3560 25 25 using System.ComponentModel; 26 26 using System.Linq; 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 28 28 29 namespace HeuristicLab.Collections { 30 [StorableClass] 29 31 [Serializable] 30 32 public class ObservableArray<T> : IObservableArray<T> { 33 [Storable] 31 34 protected T[] array; 32 35 … … 70 73 array = collection.ToArray(); 71 74 } 75 [StorableConstructor] 76 protected ObservableArray(bool deserializing) { } 72 77 #endregion 73 78 -
trunk/sources/HeuristicLab.Collections/3.3/ObservableCollection.cs
r3390 r3560 24 24 using System.Collections.Generic; 25 25 using System.ComponentModel; 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 27 27 28 namespace HeuristicLab.Collections { 29 [StorableClass] 28 30 [Serializable] 29 31 public class ObservableCollection<T> : IObservableCollection<T> { 32 [Storable] 30 33 protected List<T> list; 31 34 … … 58 61 list = new List<T>(collection); 59 62 } 63 [StorableConstructor] 64 protected ObservableCollection(bool deserializing) { } 60 65 #endregion 61 66 -
trunk/sources/HeuristicLab.Collections/3.3/ObservableDictionary.cs
r3390 r3560 25 25 using System.ComponentModel; 26 26 using System.Linq; 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 28 28 29 namespace HeuristicLab.Collections { 30 [StorableClass] 29 31 [Serializable] 30 32 public class ObservableDictionary<TKey, TValue> : IObservableDictionary<TKey, TValue> { 33 [Storable] 31 34 protected Dictionary<TKey, TValue> dict; 32 35 … … 84 87 dict = new Dictionary<TKey, TValue>(dictionary, comparer); 85 88 } 89 [StorableConstructor] 90 protected ObservableDictionary(bool deserializing) { } 86 91 #endregion 87 92 -
trunk/sources/HeuristicLab.Collections/3.3/ObservableKeyedCollection.cs
r3390 r3560 25 25 using System.ComponentModel; 26 26 using System.Linq; 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 28 28 29 namespace HeuristicLab.Collections { 30 [StorableClass] 29 31 [Serializable] 30 32 public abstract class ObservableKeyedCollection<TKey, TItem> : IObservableKeyedCollection<TKey, TItem> { 33 [Storable] 31 34 protected Dictionary<TKey, TItem> dict; 32 35 … … 74 77 dict.Add(GetKeyForItem(item), item); 75 78 } 79 [StorableConstructor] 80 protected ObservableKeyedCollection(bool deserializing) { } 76 81 #endregion 77 82 -
trunk/sources/HeuristicLab.Collections/3.3/ObservableList.cs
r3390 r3560 24 24 using System.Collections.Generic; 25 25 using System.ComponentModel; 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 27 27 28 namespace HeuristicLab.Collections { 29 [StorableClass] 28 30 [Serializable] 29 31 public class ObservableList<T> : IObservableList<T> { 32 [Storable] 30 33 protected List<T> list; 31 34 … … 72 75 list = new List<T>(collection); 73 76 } 77 [StorableConstructor] 78 protected ObservableList(bool deserializing) { } 74 79 #endregion 75 80 -
trunk/sources/HeuristicLab.Collections/3.3/ObservableSet.cs
r3390 r3560 25 25 using System.ComponentModel; 26 26 using System.Linq; 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 28 28 29 namespace HeuristicLab.Collections { 30 [StorableClass] 29 31 [Serializable] 30 32 public class ObservableSet<T> : IObservableSet<T> { 33 [Storable] 31 34 protected HashSet<T> set; 32 35 … … 56 59 set = new HashSet<T>(collection, comparer); 57 60 } 61 [StorableConstructor] 62 protected ObservableSet(bool deserializing) { } 58 63 #endregion 59 64 -
trunk/sources/HeuristicLab.Collections/3.3/ReadOnlyObservableArray.cs
r3390 r3560 24 24 using System.Collections.Generic; 25 25 using System.ComponentModel; 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 27 27 28 namespace HeuristicLab.Collections { 29 [StorableClass] 28 30 [Serializable] 29 31 public class ReadOnlyObservableArray<T> : IObservableArray<T> { 32 [Storable] 30 33 protected IObservableArray<T> array; 31 34 … … 57 60 RegisterEvents(); 58 61 } 62 [StorableConstructor] 63 protected ReadOnlyObservableArray(bool deserializing) { } 59 64 #endregion 60 65 … … 106 111 107 112 #region Events 113 [StorableHook(HookType.AfterDeserialization)] 108 114 protected void RegisterEvents() { 109 115 array.ItemsReplaced += new CollectionItemsChangedEventHandler<IndexedItem<T>>(array_ItemsReplaced); -
trunk/sources/HeuristicLab.Collections/3.3/ReadOnlyObservableCollection.cs
r3390 r3560 24 24 using System.Collections.Generic; 25 25 using System.ComponentModel; 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 27 27 28 namespace HeuristicLab.Collections { 29 [StorableClass] 28 30 [Serializable] 29 31 public class ReadOnlyObservableCollection<T> : IObservableCollection<T> { 32 [Storable] 30 33 protected IObservableCollection<T> collection; 31 34 … … 46 49 RegisterEvents(); 47 50 } 51 [StorableConstructor] 52 protected ReadOnlyObservableCollection(bool deserializing) { } 48 53 #endregion 49 54 … … 84 89 85 90 #region Events 91 [StorableHook(HookType.AfterDeserialization)] 86 92 protected void RegisterEvents() { 87 93 collection.ItemsAdded += new CollectionItemsChangedEventHandler<T>(collection_ItemsAdded); -
trunk/sources/HeuristicLab.Collections/3.3/ReadOnlyObservableDictionary.cs
r3390 r3560 24 24 using System.Collections.Generic; 25 25 using System.ComponentModel; 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 27 27 28 namespace HeuristicLab.Collections { 29 [StorableClass] 28 30 [Serializable] 29 31 public class ReadOnlyObservableDictionary<TKey, TValue> : IObservableDictionary<TKey, TValue> { 32 [Storable] 30 33 protected IObservableDictionary<TKey, TValue> dict; 31 34 … … 60 63 RegisterEvents(); 61 64 } 65 [StorableConstructor] 66 protected ReadOnlyObservableDictionary(bool deserializing) { } 62 67 #endregion 63 68 … … 111 116 112 117 #region Events 118 [StorableHook(HookType.AfterDeserialization)] 113 119 protected void RegisterEvents() { 114 120 dict.ItemsAdded += new CollectionItemsChangedEventHandler<KeyValuePair<TKey, TValue>>(dict_ItemsAdded); -
trunk/sources/HeuristicLab.Collections/3.3/ReadOnlyObservableKeyedCollection.cs
r3390 r3560 24 24 using System.Collections.Generic; 25 25 using System.ComponentModel; 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 27 27 28 namespace HeuristicLab.Collections { 29 [StorableClass] 28 30 [Serializable] 29 31 public class ReadOnlyObservableKeyedCollection<TKey, TItem> : IObservableKeyedCollection<TKey, TItem> { 32 [Storable] 30 33 protected IObservableKeyedCollection<TKey, TItem> collection; 31 34 … … 52 55 RegisterEvents(); 53 56 } 57 [StorableConstructor] 58 protected ReadOnlyObservableKeyedCollection(bool deserializing) { } 54 59 #endregion 55 60 … … 100 105 101 106 #region Events 107 [StorableHook(HookType.AfterDeserialization)] 102 108 protected void RegisterEvents() { 103 109 collection.ItemsAdded += new CollectionItemsChangedEventHandler<TItem>(collection_ItemsAdded); -
trunk/sources/HeuristicLab.Collections/3.3/ReadOnlyObservableList.cs
r3390 r3560 24 24 using System.Collections.Generic; 25 25 using System.ComponentModel; 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 27 27 28 namespace HeuristicLab.Collections { 29 [StorableClass] 28 30 [Serializable] 29 31 public class ReadOnlyObservableList<T> : IObservableList<T> { 32 [Storable] 30 33 protected IObservableList<T> list; 31 34 … … 54 57 RegisterEvents(); 55 58 } 59 [StorableConstructor] 60 protected ReadOnlyObservableList(bool deserializing) { } 56 61 #endregion 57 62 … … 103 108 104 109 #region Events 110 [StorableHook(HookType.AfterDeserialization)] 105 111 protected void RegisterEvents() { 106 112 list.ItemsAdded += new CollectionItemsChangedEventHandler<IndexedItem<T>>(list_ItemsAdded); -
trunk/sources/HeuristicLab.Collections/3.3/ReadOnlyObservableSet.cs
r3390 r3560 24 24 using System.Collections.Generic; 25 25 using System.ComponentModel; 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 27 27 28 namespace HeuristicLab.Collections { 29 [StorableClass] 28 30 [Serializable] 29 31 public class ReadOnlyObservableSet<T> : IObservableSet<T> { 32 [Storable] 30 33 protected IObservableSet<T> set; 31 34 … … 46 49 RegisterEvents(); 47 50 } 51 [StorableConstructor] 52 protected ReadOnlyObservableSet(bool deserializing) { } 48 53 #endregion 49 54 … … 125 130 126 131 #region Events 132 [StorableHook(HookType.AfterDeserialization)] 127 133 protected void RegisterEvents() { 128 134 set.ItemsAdded += new CollectionItemsChangedEventHandler<T>(set_ItemsAdded);
Note: See TracChangeset
for help on using the changeset viewer.