Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/01/14 19:39:14 (10 years ago)
Author:
bburlacu
Message:

#2223: Changed arc data from IDeepCloneable to object.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core/3.3/Collections/DirectedGraph/Arc.cs

    r11248 r11256  
    5757
    5858    [Storable]
    59     protected IDeepCloneable data;
    60     public IDeepCloneable Data {
     59    protected object data;
     60    public object Data {
    6161      get { return data; }
    6262      set {
     
    8181      label = original.Label;
    8282      weight = original.Weight;
    83       data = cloner.Clone(data);
     83      if (data is IDeepCloneable)
     84        data = cloner.Clone((IDeepCloneable)data);
     85      else data = original.Data;
    8486    }
    8587    public override IDeepCloneable Clone(Cloner cloner) { return new Arc(this, cloner); }
Note: See TracChangeset for help on using the changeset viewer.