Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/13/10 06:41:56 (14 years ago)
Author:
swagner
Message:

Implemented ReadOnlyView property for items (#969).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core/3.3/VariableCollection.cs

    r3160 r3317  
    3333
    3434    public override IDeepCloneable Clone(Cloner cloner) {
    35       VariableCollection clone = new VariableCollection(this.Select(x => (IVariable)cloner.Clone(x)));
     35      VariableCollection clone = new VariableCollection();
    3636      cloner.RegisterClonedObject(this, clone);
     37      clone.ReadOnlyView = ReadOnlyView;
     38      foreach (string key in dict.Keys)
     39        clone.dict.Add(key, (IVariable)cloner.Clone(dict[key]));
     40      clone.Initialize();
    3741      return clone;
    3842    }
Note: See TracChangeset for help on using the changeset viewer.