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/ReadOnlyItemSet.cs

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