Changeset 4722 for trunk/sources/HeuristicLab.Data/3.3/StringMatrix.cs
- Timestamp:
- 11/06/10 01:56:04 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources
- Property svn:mergeinfo changed
/branches/CloningRefactoring (added) merged: 4656-4693,4696-4697,4711-4714,4718-4719
- Property svn:mergeinfo changed
-
trunk/sources/HeuristicLab.Data/3.3/StringMatrix.cs
r3431 r4722 134 134 } 135 135 136 [StorableConstructor] 137 protected StringMatrix(bool deserializing) : base(deserializing) { } 138 protected StringMatrix(StringMatrix original, Cloner cloner) 139 : base(original, cloner) { 140 this.matrix = (string[,])original.matrix.Clone(); 141 this.columnNames = new List<string>(original.columnNames); 142 this.rowNames = new List<string>(original.rowNames); 143 this.sortableView = original.sortableView; 144 this.readOnly = original.readOnly; 145 } 136 146 public StringMatrix() { 137 147 matrix = new string[0, 0]; … … 182 192 183 193 public override IDeepCloneable Clone(Cloner cloner) { 184 StringMatrix clone = new StringMatrix(); 185 cloner.RegisterClonedObject(this, clone); 186 clone.matrix = (string[,])matrix.Clone(); 187 clone.columnNames = new List<string>(columnNames); 188 clone.rowNames = new List<string>(rowNames); 189 clone.sortableView = sortableView; 190 clone.readOnly = readOnly; 191 return clone; 194 return new StringMatrix(this, cloner); 192 195 } 193 196
Note: See TracChangeset
for help on using the changeset viewer.