- Timestamp:
- 10/29/10 15:59:12 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/CloningRefactoring/HeuristicLab.Data/3.3/StringArray.cs
r4068 r4662 70 70 } 71 71 72 [StorableConstructor] 73 protected StringArray(bool deserializing) : base(deserializing) { } 74 protected StringArray(StringArray original, Cloner cloner) 75 : base(original, cloner) { 76 this.array = (string[])original.array.Clone(); 77 this.readOnly = original.readOnly; 78 } 72 79 public StringArray() { 73 80 array = new string[0]; … … 89 96 90 97 public override IDeepCloneable Clone(Cloner cloner) { 91 StringArray clone = new StringArray(); 92 cloner.RegisterClonedObject(this, clone); 93 clone.array = (string[])array.Clone(); 94 clone.readOnly = readOnly; 95 return clone; 98 return new StringArray(this, cloner); 96 99 } 97 100
Note: See TracChangeset
for help on using the changeset viewer.