Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/30/10 02:48:19 (14 years ago)
Author:
swagner
Message:

Fixed persistence exceptions by restoring the reference on HeuristicLab.Persistence in HeuristicLab.Collections (#977)

File:
1 edited

Legend:

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

    r3550 r3560  
    5555    }
    5656
    57     [Storable]
    58     private IObservableCollection<T> Items {
    59       get { return collection; }
    60       set { collection = value; }
    61     }
    62 
    6357    public ReadOnlyItemCollection() : base(new ItemCollection<T>()) { }
    6458    public ReadOnlyItemCollection(IItemCollection<T> collection) : base(collection) { }
    6559    [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) { }
    7261
    7362    public object Clone() {
     
    7867      cloner.RegisterClonedObject(this, clone);
    7968      clone.collection = (IItemCollection<T>)((IItemCollection<T>)collection).Clone(cloner);
    80       clone.Initialize();
     69      clone.RegisterEvents();
    8170      return clone;
    8271    }
Note: See TracChangeset for help on using the changeset viewer.