Changeset 3560 for trunk/sources/HeuristicLab.Core/3.3/Collections
- Timestamp:
- 04/30/10 02:48:19 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Core/3.3/Collections
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core/3.3/Collections/CheckedItemCollection.cs
r3558 r3560 58 58 } 59 59 [StorableConstructor] 60 protected CheckedItemCollection(bool deserializing) { }60 protected CheckedItemCollection(bool deserializing) : base(deserializing) { } 61 61 62 62 public bool IsItemChecked(T item) { -
trunk/sources/HeuristicLab.Core/3.3/Collections/ItemArray.cs
r3550 r3560 58 58 } 59 59 60 [Storable]61 private T[] Items {62 get { return array; }63 set { array = value; }64 }65 66 60 public ItemArray() : base() { } 67 61 public ItemArray(int length) : base(length) { } … … 69 63 public ItemArray(IEnumerable<T> collection) : base(collection) { } 70 64 [StorableConstructor] 71 protected ItemArray(bool deserializing) { }65 protected ItemArray(bool deserializing) : base(deserializing) { } 72 66 73 67 public object Clone() { -
trunk/sources/HeuristicLab.Core/3.3/Collections/ItemCollection.cs
r3550 r3560 55 55 } 56 56 57 [Storable]58 private List<T> Items {59 get { return list; }60 set { list = value; }61 }62 63 57 public ItemCollection() : base() { } 64 58 public ItemCollection(int capacity) : base(capacity) { } 65 59 public ItemCollection(IEnumerable<T> collection) : base(collection) { } 66 60 [StorableConstructor] 67 protected ItemCollection(bool deserializing) { }61 protected ItemCollection(bool deserializing) : base(deserializing) { } 68 62 69 63 public object Clone() { -
trunk/sources/HeuristicLab.Core/3.3/Collections/ItemDictionary.cs
r3550 r3560 55 55 } 56 56 57 [Storable]58 private Dictionary<TKey, TValue> Items {59 get { return dict; }60 set { dict = value; }61 }62 63 57 public ItemDictionary() : base() { } 64 58 public ItemDictionary(int capacity) : base(capacity) { } 65 59 public ItemDictionary(IDictionary<TKey, TValue> dictionary) : base(dictionary) { } 66 60 [StorableConstructor] 67 protected ItemDictionary(bool deserializing) { }61 protected ItemDictionary(bool deserializing) : base(deserializing) { } 68 62 69 63 public object Clone() { -
trunk/sources/HeuristicLab.Core/3.3/Collections/ItemList.cs
r3550 r3560 58 58 } 59 59 60 [Storable]61 private List<T> Items {62 get { return list; }63 set { list = value; }64 }65 66 60 public ItemList() : base() { } 67 61 public ItemList(int capacity) : base(capacity) { } 68 62 public ItemList(IEnumerable<T> collection) : base(collection) { } 69 63 [StorableConstructor] 70 protected ItemList(bool deserializing) { }64 protected ItemList(bool deserializing) : base(deserializing) { } 71 65 72 66 public object Clone() { -
trunk/sources/HeuristicLab.Core/3.3/Collections/ItemSet.cs
r3550 r3560 58 58 } 59 59 60 [Storable]61 private HashSet<T> Items {62 get { return set; }63 set { set = value; }64 }65 66 60 public ItemSet() : base() { } 67 61 public ItemSet(IEnumerable<T> collection) : base(collection) { } 68 62 [StorableConstructor] 69 protected ItemSet(bool deserializing) { }63 protected ItemSet(bool deserializing) : base(deserializing) { } 70 64 71 65 public object Clone() { -
trunk/sources/HeuristicLab.Core/3.3/Collections/KeyedItemCollection.cs
r3550 r3560 54 54 } 55 55 56 [Storable]57 private Dictionary<TKey, TItem> Items {58 get { return dict; }59 set { dict = value; }60 }61 62 56 protected KeyedItemCollection() : base() { } 63 57 protected KeyedItemCollection(int capacity) : base(capacity) { } 64 58 protected KeyedItemCollection(IEnumerable<TItem> collection) : base(collection) { } 65 59 [StorableConstructor] 66 protected KeyedItemCollection(bool deserializing) { }60 protected KeyedItemCollection(bool deserializing) : base(deserializing) { } 67 61 68 62 public object Clone() { -
trunk/sources/HeuristicLab.Core/3.3/Collections/NamedItemCollection.cs
r3390 r3560 38 38 } 39 39 [StorableConstructor] 40 protected NamedItemCollection(bool deserializing) { }40 protected NamedItemCollection(bool deserializing) : base(deserializing) { } 41 41 42 42 [StorableHook(HookType.AfterDeserialization)] -
trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyItemArray.cs
r3550 r3560 55 55 } 56 56 57 [Storable]58 private IObservableArray<T> Items {59 get { return array; }60 set { array = value; }61 }62 63 57 public ReadOnlyItemArray() : base(new ItemArray<T>()) { } 64 58 public ReadOnlyItemArray(IItemArray<T> array) : base(array) { } 65 59 [StorableConstructor] 66 protected ReadOnlyItemArray(bool deserializing) { } 67 68 [StorableHook(HookType.AfterDeserialization)] 69 private void Initialize() { 70 RegisterEvents(); 71 } 60 protected ReadOnlyItemArray(bool deserializing) : base(deserializing) { } 72 61 73 62 public object Clone() { … … 78 67 cloner.RegisterClonedObject(this, clone); 79 68 clone.array = (IItemArray<T>)((IItemArray<T>)array).Clone(cloner); 80 clone. Initialize();69 clone.RegisterEvents(); 81 70 return clone; 82 71 } -
trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyItemCollection.cs
r3550 r3560 55 55 } 56 56 57 [Storable]58 private IObservableCollection<T> Items {59 get { return collection; }60 set { collection = value; }61 }62 63 57 public ReadOnlyItemCollection() : base(new ItemCollection<T>()) { } 64 58 public ReadOnlyItemCollection(IItemCollection<T> collection) : base(collection) { } 65 59 [StorableConstructor] 66 protected ReadOnlyItemCollection(bool deserializing) { } 67 68 [StorableHook(HookType.AfterDeserialization)] 69 private void Initialize() { 70 RegisterEvents(); 71 } 60 protected ReadOnlyItemCollection(bool deserializing) : base(deserializing) { } 72 61 73 62 public object Clone() { … … 78 67 cloner.RegisterClonedObject(this, clone); 79 68 clone.collection = (IItemCollection<T>)((IItemCollection<T>)collection).Clone(cloner); 80 clone. Initialize();69 clone.RegisterEvents(); 81 70 return clone; 82 71 } -
trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyItemDictionary.cs
r3550 r3560 55 55 } 56 56 57 [Storable]58 private IObservableDictionary<TKey, TValue> Items {59 get { return dict; }60 set { dict = value; }61 }62 63 57 public ReadOnlyItemDictionary() : base(new ItemDictionary<TKey, TValue>()) { } 64 58 public ReadOnlyItemDictionary(IItemDictionary<TKey, TValue> dictionary) : base(dictionary) { } 65 59 [StorableConstructor] 66 protected ReadOnlyItemDictionary(bool deserializing) { } 67 68 [StorableHook(HookType.AfterDeserialization)] 69 private void Initialize() { 70 RegisterEvents(); 71 } 60 protected ReadOnlyItemDictionary(bool deserializing) : base(deserializing) { } 72 61 73 62 public object Clone() { … … 78 67 cloner.RegisterClonedObject(this, clone); 79 68 clone.dict = (IItemDictionary<TKey, TValue>)((IItemDictionary<TKey, TValue>)dict).Clone(cloner); 80 clone. Initialize();69 clone.RegisterEvents(); 81 70 return clone; 82 71 } -
trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyItemList.cs
r3550 r3560 55 55 } 56 56 57 [Storable]58 private IObservableList<T> Items {59 get { return list; }60 set { list = value; }61 }62 63 57 public ReadOnlyItemList() : base(new ItemList<T>()) { } 64 58 public ReadOnlyItemList(IItemList<T> list) : base(list) { } 65 59 [StorableConstructor] 66 protected ReadOnlyItemList(bool deserializing) { } 67 68 [StorableHook(HookType.AfterDeserialization)] 69 private void Initialize() { 70 RegisterEvents(); 71 } 60 protected ReadOnlyItemList(bool deserializing) : base(deserializing) { } 72 61 73 62 public object Clone() { … … 78 67 cloner.RegisterClonedObject(this, clone); 79 68 clone.list = (IItemList<T>)((IItemList<T>)list).Clone(cloner); 80 clone. Initialize();69 clone.RegisterEvents(); 81 70 return clone; 82 71 } -
trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyItemSet.cs
r3550 r3560 55 55 } 56 56 57 [Storable]58 private IObservableSet<T> Items {59 get { return set; }60 set { set = value; }61 }62 63 57 public ReadOnlyItemSet() : base(new ItemSet<T>()) { } 64 58 public ReadOnlyItemSet(IItemSet<T> set) : base(set) { } 65 59 [StorableConstructor] 66 protected ReadOnlyItemSet(bool deserializing) { } 67 68 [StorableHook(HookType.AfterDeserialization)] 69 private void Initialize() { 70 RegisterEvents(); 71 } 60 protected ReadOnlyItemSet(bool deserializing) : base(deserializing) { } 72 61 73 62 public object Clone() { … … 78 67 cloner.RegisterClonedObject(this, clone); 79 68 clone.set = (IItemSet<T>)((IItemSet<T>)set).Clone(cloner); 80 clone. Initialize();69 clone.RegisterEvents(); 81 70 return clone; 82 71 } -
trunk/sources/HeuristicLab.Core/3.3/Collections/ReadOnlyKeyedItemCollection.cs
r3550 r3560 55 55 } 56 56 57 [Storable]58 private IObservableKeyedCollection<TKey, TItem> Items {59 get { return collection; }60 set { collection = value; }61 }62 63 57 protected ReadOnlyKeyedItemCollection() : base() { } 64 58 public ReadOnlyKeyedItemCollection(IKeyedItemCollection<TKey, TItem> collection) : base(collection) { } 65 59 [StorableConstructor] 66 protected ReadOnlyKeyedItemCollection(bool deserializing) { } 67 68 [StorableHook(HookType.AfterDeserialization)] 69 private void Initialize() { 70 RegisterEvents(); 71 } 60 protected ReadOnlyKeyedItemCollection(bool deserializing) : base(deserializing) { } 72 61 73 62 public object Clone() { … … 78 67 cloner.RegisterClonedObject(this, clone); 79 68 clone.collection = (IKeyedItemCollection<TKey, TItem>)((IKeyedItemCollection<TKey, TItem>)collection).Clone(cloner); 80 clone. Initialize();69 clone.RegisterEvents(); 81 70 return clone; 82 71 }
Note: See TracChangeset
for help on using the changeset viewer.