Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/28/18 16:10:48 (6 years ago)
Author:
jkarder
Message:

#2520: worked on reintegration of new persistence

  • added nuget references to HEAL.Fossil
  • added StorableType attributes to many classes
  • changed signature of StorableConstructors
  • removed some classes in old persistence
  • removed some unnecessary usings
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2520_PersistenceReintegration/HeuristicLab.Data/3.3/BoolValue.cs

    r16453 r16462  
    2525using HeuristicLab.Common;
    2626using HeuristicLab.Core;
    27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     27using HEAL.Fossil;
    2828
    2929namespace HeuristicLab.Data {
    3030  [Item("BoolValue", "Represents a boolean value.")]
    31   [StorableClass]
     31  [StorableType("EC318C04-84C2-4DDA-881D-B2890093162E")]
    3232  public class BoolValue : ValueTypeValue<bool>, IComparable, IStringConvertibleValue {
    3333    public static new Image StaticItemImage {
     
    3535    }
    3636
     37    [StorableConstructor]
     38    public BoolValue(StorableConstructorFlag _) : base(_) { }
    3739    protected BoolValue(BoolValue original, Cloner cloner)
    3840      : base(original, cloner) {
    3941    }
    4042    public BoolValue() : base() { }
    41     [StorableConstructor]
    42     public BoolValue(bool value)
    43       : base(value) {
    44       //mkommend: Be aware that the base call refers to the storable ctor => the value is set explicitly in the ctor body.
    45       //          This should not affect the persistence, because first the ctor is called and afterwards the values are set by reflection.
    46       this.value = value;
    47     }
     43    public BoolValue(bool value) : base(value) { }
    4844
    4945    public override IDeepCloneable Clone(Cloner cloner) {
Note: See TracChangeset for help on using the changeset viewer.