Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/20/10 02:02:39 (14 years ago)
Author:
swagner
Message:

Added ReadOnly property to all items of HeuristicLab.Data (#969)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Data/3.3/DoubleMatrix.cs

    r3376 r3430  
    3939
    4040    public override IDeepCloneable Clone(Cloner cloner) {
    41       DoubleMatrix clone = new DoubleMatrix(matrix);
     41      DoubleMatrix clone = new DoubleMatrix();
    4242      cloner.RegisterClonedObject(this, clone);
    4343      clone.ReadOnlyView = ReadOnlyView;
    44       clone.ColumnNames = new List<string>(ColumnNames);
    45       clone.RowNames = new List<string>(RowNames);
     44      clone.matrix = (double[,])matrix.Clone();
     45      clone.columnNames = new List<string>(columnNames);
     46      clone.rowNames = new List<string>(rowNames);
     47      clone.sortableView = sortableView;
     48      clone.readOnly = readOnly;
    4649      return clone;
    4750    }
     
    8285      set { Columns = value; }
    8386    }
    84     IEnumerable<string> IStringConvertibleMatrix.ColumnNames {
    85       get { return this.ColumnNames; }
    86       set { this.ColumnNames = value; }
    87     }
    88     IEnumerable<string> IStringConvertibleMatrix.RowNames {
    89       get { return this.RowNames; }
    90       set { this.RowNames = value; }
    91     }
    92     bool IStringConvertibleMatrix.SortableView {
    93       get { return this.SortableView; }
    94       set { this.SortableView = value; }
    95     }
    9687    bool IStringConvertibleMatrix.Validate(string value, out string errorMessage) {
    9788      return Validate(value, out errorMessage);
Note: See TracChangeset for help on using the changeset viewer.