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.Collections/3.3/ReadOnlyObservableDictionary.cs

    r3390 r3560  
    2424using System.Collections.Generic;
    2525using System.ComponentModel;
     26using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2627
    2728namespace HeuristicLab.Collections {
     29  [StorableClass]
    2830  [Serializable]
    2931  public class ReadOnlyObservableDictionary<TKey, TValue> : IObservableDictionary<TKey, TValue> {
     32    [Storable]
    3033    protected IObservableDictionary<TKey, TValue> dict;
    3134
     
    6063      RegisterEvents();
    6164    }
     65    [StorableConstructor]
     66    protected ReadOnlyObservableDictionary(bool deserializing) { }
    6267    #endregion
    6368
     
    111116
    112117    #region Events
     118    [StorableHook(HookType.AfterDeserialization)]
    113119    protected void RegisterEvents() {
    114120      dict.ItemsAdded += new CollectionItemsChangedEventHandler<KeyValuePair<TKey, TValue>>(dict_ItemsAdded);
Note: See TracChangeset for help on using the changeset viewer.