- Timestamp:
- 12/28/18 16:10:48 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2520_PersistenceReintegration/HeuristicLab.Data/3.3/BoolValue.cs
r16453 r16462 25 25 using HeuristicLab.Common; 26 26 using HeuristicLab.Core; 27 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;27 using HEAL.Fossil; 28 28 29 29 namespace HeuristicLab.Data { 30 30 [Item("BoolValue", "Represents a boolean value.")] 31 [Storable Class]31 [StorableType("EC318C04-84C2-4DDA-881D-B2890093162E")] 32 32 public class BoolValue : ValueTypeValue<bool>, IComparable, IStringConvertibleValue { 33 33 public static new Image StaticItemImage { … … 35 35 } 36 36 37 [StorableConstructor] 38 public BoolValue(StorableConstructorFlag _) : base(_) { } 37 39 protected BoolValue(BoolValue original, Cloner cloner) 38 40 : base(original, cloner) { 39 41 } 40 42 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) { } 48 44 49 45 public override IDeepCloneable Clone(Cloner cloner) {
Note: See TracChangeset
for help on using the changeset viewer.