Changeset 17097 for stable/HeuristicLab.Data/3.3/BoolValue.cs
- Timestamp:
- 07/07/19 23:40:10 (5 years ago)
- Location:
- stable
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
-
stable/HeuristicLab.Data
- Property svn:mergeinfo changed
/branches/2520_PersistenceReintegration/HeuristicLab.Data (added) merged: 16452-16454,16462,16474,16529,16539,16558-16559 /trunk/HeuristicLab.Data merged: 16565,16568
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Data/3.3
- Property svn:mergeinfo changed
/branches/2520_PersistenceReintegration/HeuristicLab.Data/3.3 (added) merged: 16452-16454,16462,16474,16529,16539,16558-16559 /trunk/HeuristicLab.Data/3.3 merged: 16565,16568
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Data/3.3/BoolValue.cs
r15584 r17097 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 25 25 using HeuristicLab.Common; 26 26 using HeuristicLab.Core; 27 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;27 using HEAL.Attic; 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.