Changeset 11256
- Timestamp:
- 08/01/14 19:39:14 (10 years ago)
- Location:
- trunk/sources/HeuristicLab.Core/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core/3.3/Collections/DirectedGraph/Arc.cs
r11248 r11256 57 57 58 58 [Storable] 59 protected IDeepCloneabledata;60 public IDeepCloneableData {59 protected object data; 60 public object Data { 61 61 get { return data; } 62 62 set { … … 81 81 label = original.Label; 82 82 weight = original.Weight; 83 data = cloner.Clone(data); 83 if (data is IDeepCloneable) 84 data = cloner.Clone((IDeepCloneable)data); 85 else data = original.Data; 84 86 } 85 87 public override IDeepCloneable Clone(Cloner cloner) { return new Arc(this, cloner); } -
trunk/sources/HeuristicLab.Core/3.3/Interfaces/DirectedGraph/IArc.cs
r11241 r11256 21 21 22 22 using System; 23 using HeuristicLab.Common;24 23 25 24 namespace HeuristicLab.Core { … … 29 28 string Label { get; set; } 30 29 double Weight { get; set; } 31 IDeepCloneableData { get; set; }30 object Data { get; set; } 32 31 33 32 event EventHandler Changed; // generic event for when the label, weight or data were changed
Note: See TracChangeset
for help on using the changeset viewer.